From: Dave Kleikamp Date: Thu, 2 Jun 2005 17:18:20 +0000 (-0500) Subject: JFS: kernel BUG at fs/jfs/jfs_txnmgr.c:859 X-Git-Tag: v2.6.13-rc4~130^2~202^2~171^2~2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=c2731509cfb538b9b38feaf657fab2334ea45253;p=~emulex%2Finfiniband.git 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 --- diff --git a/fs/jfs/jfs_dtree.c b/fs/jfs/jfs_dtree.c index ac41f72d6d5..8676aee3ae4 100644 --- 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);