diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-07-05 09:44:53 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-07-05 16:02:23 -0400 |
commit | 00699ad8571afd7fb8bc2c61f67c86c2428680ab (patch) | |
tree | 60eef261c45881ff0985f2613047d9d58d20a857 /fs/fuse/dir.c | |
parent | a99cde438de0c4c0cecc1d1af1a55a75b10bfdef (diff) |
Use the right predicate in ->atomic_open() instances
->atomic_open() can be given an in-lookup dentry *or* a negative one
found in dcache. Use d_in_lookup() to tell one from another, rather
than d_unhashed().
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/fuse/dir.c')
-rw-r--r-- | fs/fuse/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index 264f07c7754e..cca7b048c07b 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c | |||
@@ -480,7 +480,7 @@ static int fuse_atomic_open(struct inode *dir, struct dentry *entry, | |||
480 | struct fuse_conn *fc = get_fuse_conn(dir); | 480 | struct fuse_conn *fc = get_fuse_conn(dir); |
481 | struct dentry *res = NULL; | 481 | struct dentry *res = NULL; |
482 | 482 | ||
483 | if (d_unhashed(entry)) { | 483 | if (d_in_lookup(entry)) { |
484 | res = fuse_lookup(dir, entry, 0); | 484 | res = fuse_lookup(dir, entry, 0); |
485 | if (IS_ERR(res)) | 485 | if (IS_ERR(res)) |
486 | return PTR_ERR(res); | 486 | return PTR_ERR(res); |