diff --git a/fs/ntfs3/namei.c b/fs/ntfs3/namei.c index 945dcf7a34d93018aa07f24b2edf0d480eb0a725..50d6d9fbcf67cdfee6b298e6a2850d1e82601a1d 100644 --- a/fs/ntfs3/namei.c +++ b/fs/ntfs3/namei.c @@ -79,7 +79,7 @@ static struct dentry *ntfs_lookup(struct inode *dir, struct dentry *dentry, if (err < 0) inode = ERR_PTR(err); else { - ni_lock(ni); + ni_lock_dir(ni); inode = dir_search_u(dir, uni, NULL); ni_unlock(ni); }