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

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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -405,6 +405,7 @@ static struct dentry *fuse_lookup(struct inode *dir, struct dentry *entry,
	else
		fuse_invalidate_entry_cache(entry);

	if (inode)
		fuse_advise_use_readdirplus(dir);
	return newent;