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