diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index 9af23f436558..b41cc537eb31 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c @@ -973,7 +973,7 @@ int fuse_reverse_inval_entry(struct super_block *sb, u64 parent_nodeid, if (!parent) return -ENOENT; - inode_lock(parent); + inode_lock_nested(parent, I_MUTEX_PARENT); if (!S_ISDIR(parent->i_mode)) goto unlock;