Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c2731509 authored by Dave Kleikamp's avatar Dave Kleikamp
Browse files

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: default avatarDave Kleikamp <shaggy@austin.ibm.com>
parent 7078253c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);