projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7078253
)
JFS: kernel BUG at fs/jfs/jfs_txnmgr.c:859
author
Dave Kleikamp
<shaggy@austin.ibm.com>
Thu, 2 Jun 2005 17:18:20 +0000
(12:18 -0500)
committer
Dave Kleikamp
<shaggy@austin.ibm.com>
Thu, 2 Jun 2005 17:18:20 +0000
(12:18 -0500)
add_missing_indices() must set tlck->type to tlckBTROOT when modifying
a root btree root to avoid a trap in txRelease()
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
fs/jfs/jfs_dtree.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/jfs/jfs_dtree.c
b/fs/jfs/jfs_dtree.c
index ac41f72d6d502fd22bcba1181a84b1c90a9d4584..8676aee3ae4896c36c71485f1fb800a83e589fee 100644
(file)
--- a/
fs/jfs/jfs_dtree.c
+++ b/
fs/jfs/jfs_dtree.c
@@
-2931,6
+2931,9
@@
static void add_missing_indices(struct inode *inode, s64 bn)
ASSERT(p->header.flag & BT_LEAF);
tlck = txLock(tid, inode, mp, tlckDTREE | tlckENTRY);
+ if (BT_IS_ROOT(mp))
+ tlck->type |= tlckBTROOT;
+
dtlck = (struct dt_lock *) &tlck->lock;
stbl = DT_GETSTBL(p);