Skip to content

Commit

Permalink
JFS: kernel BUG at fs/jfs/jfs_txnmgr.c:859
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dave Kleikamp committed Jun 2, 2005
1 parent 7078253 commit c273150
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs/jfs/jfs_dtree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c273150

Please sign in to comment.