diff --git a/fs/jfs/jfs_txnmgr.c b/fs/jfs/jfs_txnmgr.c index c16578af3a77..2c0678b03f66 100644 --- a/fs/jfs/jfs_txnmgr.c +++ b/fs/jfs/jfs_txnmgr.c @@ -811,6 +811,11 @@ struct tlock *txLock(tid_t tid, struct inode *ip, struct metapage * mp, * update tlock vector */ grantLock: + if (type & tlckDTREE) { + struct dt_lock *dtlck = (struct dt_lock *) &tlck->lock; + + dtlck->index = 0; + } tlck->type |= type; return tlck;