Use the right predicate in ->atomic_open() instances
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 5 Jul 2016 13:44:53 +0000 (09:44 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 5 Jul 2016 20:02:23 +0000 (16:02 -0400)
commit00699ad8571afd7fb8bc2c61f67c86c2428680ab
tree60eef261c45881ff0985f2613047d9d58d20a857
parenta99cde438de0c4c0cecc1d1af1a55a75b10bfdef
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>
fs/9p/vfs_inode.c
fs/9p/vfs_inode_dotl.c
fs/ceph/file.c
fs/cifs/dir.c
fs/fuse/dir.c
fs/gfs2/inode.c
fs/nfs/dir.c