mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
JFS: kernel BUG at fs/jfs/jfs_txnmgr.c:859
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>
This commit is contained in:
parent
7078253c08
commit
c2731509cf
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user