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>
Showing
- fs/9p/vfs_inode.c 1 addition, 1 deletionfs/9p/vfs_inode.c
- fs/9p/vfs_inode_dotl.c 1 addition, 1 deletionfs/9p/vfs_inode_dotl.c
- fs/ceph/file.c 1 addition, 1 deletionfs/ceph/file.c
- fs/cifs/dir.c 1 addition, 1 deletionfs/cifs/dir.c
- fs/fuse/dir.c 1 addition, 1 deletionfs/fuse/dir.c
- fs/gfs2/inode.c 1 addition, 1 deletionfs/gfs2/inode.c
- fs/namei.c 8 additions, 7 deletionsfs/namei.c
- fs/nfs/dir.c 4 additions, 1 deletionfs/nfs/dir.c
- fs/nfs/nfs4proc.c 1 addition, 1 deletionfs/nfs/nfs4proc.c
- include/linux/fs.h 1 addition, 0 deletionsinclude/linux/fs.h
Loading
Please register or sign in to comment