introduce FMODE_CREATED and switch to it
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 8 Jun 2018 17:22:02 +0000 (13:22 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 12 Jul 2018 14:04:18 +0000 (10:04 -0400)
commit73a09dd94377e4b186b300bd5461920710c7c3d5
treebb66705e5b7215057e416b4f6cb9670561b6b395
parentaad888f828fec1e7160b67f122172e7ab7f82e03
introduce FMODE_CREATED and switch to it

Parallel to FILE_CREATED, goes into ->f_mode instead of *opened.
NFS is a bit of a wart here - it doesn't have file at the point
where FILE_CREATED used to be set, so we need to propagate it
there (for now).  IMA is another one (here and everywhere)...

Note that this needs do_dentry_open() to leave old bits in ->f_mode
alone - we want it to preserve FMODE_CREATED if it had been already
set (no other bit can be there).

Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
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/namei.c
fs/nfs/dir.c
fs/nfs/nfs4proc.c
include/linux/fs.h