diff options
Diffstat (limited to 'sys/gnu/ext2fs/ext2_ihash.c')
-rw-r--r-- | sys/gnu/ext2fs/ext2_ihash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/gnu/ext2fs/ext2_ihash.c b/sys/gnu/ext2fs/ext2_ihash.c index decbc35..df2bd98 100644 --- a/sys/gnu/ext2fs/ext2_ihash.c +++ b/sys/gnu/ext2fs/ext2_ihash.c @@ -148,7 +148,7 @@ ext2_ihashins(ip) struct ihashhead *ipp; /* lock the inode, then put it on the appropriate hash list */ - lockmgr(&ip->i_vnode->v_lock, LK_EXCLUSIVE, (struct mtx *)0, td); + vn_lock(ITOV(ip), LK_EXCLUSIVE | LK_RETRY, td); mtx_lock(&ext2_ihash_mtx); ipp = INOHASH(ip->i_dev, ip->i_number); |