Skip to contentSkip to conversation

vfs.git pile 7 (tmpfile)

GIT PULL Merged Al Viro 2 participants 2 messages Oct 8, 2022 – Oct 11, 2022 VFS

lore
Share & tools
lore

Al Viro

author maintainer
#0 lore raw
	Miklos' ->tmpfile() signature change; pass an unopened struct file

to it, let it open the damn thing. Allows to add tmpfile support to FUSE.

A couple of conflicts - one in overlayfs (use the lines from this
branch), another in Documentation/filesystems/porting.rst (file is essentially append-only, so just add the chunk to the EOF).

The following changes since commit 521a547ced6477c54b4b0cc206000406c221b4d6:

Linux 6.0-rc6 (2022-09-18 13:44:14 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git tags/pull-tmpfile

for you to fetch changes up to 7d37539037c2fca70346fbedc219f655253d5cff:

fuse: implement ->tmpfile() (2022-09-24 07:00:00 +0200)

----------------------------------------------------------------
tmpfile API change

----------------------------------------------------------------
Al Viro (1):
hugetlbfs: cleanup mknod and tmpfile

Miklos Szeredi (9):
vfs: add vfs_tmpfile_open() helper
cachefiles: tmpfile error handling cleanup
cachefiles: only pass inode to *mark_inode_inuse() helpers
cachefiles: use vfs_tmpfile_open() helper
ovl: use vfs_tmpfile_open() helper
vfs: make vfs_tmpfile() static
vfs: move open right after ->tmpfile()
vfs: open inside ->tmpfile()
fuse: implement ->tmpfile()

 Documentation/filesystems/locking.rst |   3 +-
 Documentation/filesystems/porting.rst |  10 +++
 Documentation/filesystems/vfs.rst     |   6 +-
 fs/bad_inode.c                        |   2 +-
 fs/btrfs/inode.c                      |   8 +--
 fs/cachefiles/namei.c                 | 122 +++++++++++++++-------------------
 fs/dcache.c                           |   4 +-
 fs/ext2/namei.c                       |   6 +-
 fs/ext4/namei.c                       |   6 +-
 fs/f2fs/namei.c                       |  13 ++--
 fs/fuse/dir.c                         |  24 ++++++-
 fs/fuse/fuse_i.h                      |   3 +
 fs/hugetlbfs/inode.c                  |  42 +++++-------
 fs/minix/namei.c                      |   6 +-
 fs/namei.c                            |  88 +++++++++++++++---------
 fs/overlayfs/copy_up.c                | 108 ++++++++++++++++--------------
 fs/overlayfs/overlayfs.h              |  14 ++--
 fs/overlayfs/super.c                  |  10 +--
 fs/overlayfs/util.c                   |   2 +-
 fs/ramfs/inode.c                      |   6 +-
 fs/ubifs/dir.c                        |   7 +-
 fs/udf/namei.c                        |   6 +-
 fs/xfs/xfs_iops.c                     |  16 +++--
 include/linux/dcache.h                |   3 +-
 include/linux/fs.h                    |  16 ++++-
 include/uapi/linux/fuse.h             |   6 +-
 mm/shmem.c                            |   6 +-
 27 files changed, 303 insertions(+), 240 deletions(-)