author: Miklos Szeredi <mszeredi@redhat.com> 2019-10-21 15:57:07 +0200
committer: Miklos Szeredi <mszeredi@redhat.com> 2019-10-21 15:57:07 +0200
commit: 6c26f71759a6efc04b888dd2c1cc4f1cac38cdf0
parent: 2b319d1f6f92a4ced9897678113d176ee16ae85d
Commit Summary:
Diffstat:
1 file changed, 2 insertions, 1 deletion
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c
index d572c900bb0f..b77954a27538 100644
--- a/fs/fuse/dir.c
+++ b/fs/fuse/dir.c
@@ -405,7 +405,8 @@ static struct dentry *fuse_lookup(struct inode *dir, struct dentry *entry,
else
fuse_invalidate_entry_cache(entry);
- fuse_advise_use_readdirplus(dir);
+ if (inode)
+ fuse_advise_use_readdirplus(dir);
return newent;
out_iput: