vfs: open inside ->tmpfile()
This is in preparation for adding tmpfile support to fuse, which requires that the tmpfile creation and opening are done as a single operation. Replace the 'struct dentry *' argument of i_op->tmpfile with 'struct file *'. Call finish_open_simple() as the last thing in ->tmpfile() instances (may be omitted in the error case). Change d_tmpfile() argument to 'struct file *' as well to make callers more readable. Reviewed-by:Christian Brauner (Microsoft) <brauner@kernel.org> Signed-off-by:
Miklos Szeredi <mszeredi@redhat.com>
Showing
- Documentation/filesystems/locking.rst 2 additions, 1 deletionDocumentation/filesystems/locking.rst
- Documentation/filesystems/porting.rst 10 additions, 0 deletionsDocumentation/filesystems/porting.rst
- Documentation/filesystems/vfs.rst 4 additions, 2 deletionsDocumentation/filesystems/vfs.rst
- fs/bad_inode.c 1 addition, 1 deletionfs/bad_inode.c
- fs/btrfs/inode.c 4 additions, 4 deletionsfs/btrfs/inode.c
- fs/dcache.c 3 additions, 1 deletionfs/dcache.c
- fs/ext2/namei.c 3 additions, 3 deletionsfs/ext2/namei.c
- fs/ext4/namei.c 3 additions, 3 deletionsfs/ext4/namei.c
- fs/f2fs/namei.c 8 additions, 5 deletionsfs/f2fs/namei.c
- fs/hugetlbfs/inode.c 3 additions, 3 deletionsfs/hugetlbfs/inode.c
- fs/minix/namei.c 3 additions, 3 deletionsfs/minix/namei.c
- fs/namei.c 1 addition, 2 deletionsfs/namei.c
- fs/ramfs/inode.c 3 additions, 3 deletionsfs/ramfs/inode.c
- fs/ubifs/dir.c 4 additions, 3 deletionsfs/ubifs/dir.c
- fs/udf/namei.c 3 additions, 3 deletionsfs/udf/namei.c
- fs/xfs/xfs_iops.c 9 additions, 7 deletionsfs/xfs/xfs_iops.c
- include/linux/dcache.h 2 additions, 1 deletioninclude/linux/dcache.h
- include/linux/fs.h 1 addition, 1 deletioninclude/linux/fs.h
- mm/shmem.c 3 additions, 3 deletionsmm/shmem.c
Please register or sign in to comment