diff options
-rw-r--r-- | fs/fuse/dir.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, | |||
405 | else | 405 | else |
406 | fuse_invalidate_entry_cache(entry); | 406 | fuse_invalidate_entry_cache(entry); |
407 | 407 | ||
408 | fuse_advise_use_readdirplus(dir); | 408 | if (inode) |
409 | fuse_advise_use_readdirplus(dir); | ||
409 | return newent; | 410 | return newent; |
410 | 411 | ||
411 | out_iput: | 412 | out_iput: |