diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-07-05 15:44:53 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-07-05 22:02:23 +0200 |
commit | 00699ad8571afd7fb8bc2c61f67c86c2428680ab (patch) | |
tree | 60eef261c45881ff0985f2613047d9d58d20a857 /fs/9p/vfs_inode.c | |
parent | Linux 4.7-rc6 (diff) | |
download | linux-00699ad8571afd7fb8bc2c61f67c86c2428680ab.tar.xz linux-00699ad8571afd7fb8bc2c61f67c86c2428680ab.zip |
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/9p/vfs_inode.c')
-rw-r--r-- | fs/9p/vfs_inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index f4645c515262..e2e7c749925a 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c @@ -853,7 +853,7 @@ v9fs_vfs_atomic_open(struct inode *dir, struct dentry *dentry, struct p9_fid *fid, *inode_fid; struct dentry *res = NULL; - if (d_unhashed(dentry)) { + if (d_in_lookup(dentry)) { res = v9fs_vfs_lookup(dir, dentry, 0); if (IS_ERR(res)) return PTR_ERR(res); |