Commit 6c26f717 authored by Miklos Szeredi's avatar Miklos Szeredi

fuse: don't advise readdirplus for negative lookup

If the FUSE_READDIRPLUS_AUTO feature is enabled, then lookups on a
directory before/during readdir are used as an indication that READDIRPLUS
should be used instead of READDIR.  However if the lookup turns out to be
negative, then selecting READDIRPLUS makes no sense.
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 2b319d1f
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment