Centos-kernel-stream-9/fs/minix
Ian Kent 0dcf7b37eb fs: port ->tmpfile() to pass mnt_idmap
JIRA: https://issues.redhat.com/browse/RHEL-33888
Status: Linus

Conflicts: For consistency drop btrfs hunks because it isn't supported in
	CentOS Stream and other backports also drop such hunks.
	Upstream commit 863f144f12add ("vfs: open inside ->tmpfile()") is
	not present which caused a reject in fs/f2fs/namei.c for hunk #1,
	applied manually.
	The hunk of the patch against fs/minix/namei.c was rejected but I
	can't see any reason for it, applied manually.
	CentOS Stream has commit 9e0a1fff8d ("ubifs: Implement
	RENAME_WHITEOUT") which caused a reject in the hunk against
	fs/ubifs/dir.c, manually applied.

commit 011e2b717b1b921d3706a9d48ff83a025563e826
Author: Christian Brauner <brauner@kernel.org>
Date:   Fri Jan 13 12:49:18 2023 +0100

    fs: port ->tmpfile() to pass mnt_idmap

    Convert to struct mnt_idmap.

    Last cycle we merged the necessary infrastructure in
    256c8aed2b42 ("fs: introduce dedicated idmap type for mounts").
    This is just the conversion to struct mnt_idmap.

    Currently we still pass around the plain namespace that was attached to a
    mount. This is in general pretty convenient but it makes it easy to
    conflate namespaces that are relevant on the filesystem with namespaces
    that are relevent on the mount level. Especially for non-vfs developers
    without detailed knowledge in this area this can be a potential source for
    bugs.

    Once the conversion to struct mnt_idmap is done all helpers down to the
    really low-level helpers will take a struct mnt_idmap argument instead of
    two namespace arguments. This way it becomes impossible to conflate the two
    eliminating the possibility of any bugs. All of the vfs and all filesystems
    only operate on struct mnt_idmap.

    Acked-by: Dave Chinner <dchinner@redhat.com>
    Reviewed-by: Christoph Hellwig <hch@lst.de>
    Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>

Signed-off-by: Ian Kent <ikent@redhat.com>
2024-10-16 10:45:10 +08:00
..
Kconfig fs: add CONFIG_BUFFER_HEAD 2024-04-17 10:10:20 +08:00
Makefile
bitmap.c
dir.c
file.c fs: port ->setattr() to pass mnt_idmap 2024-10-16 09:07:05 +08:00
inode.c fs: port ->getattr() to pass mnt_idmap 2024-10-16 09:37:45 +08:00
itree_common.c
itree_v1.c
itree_v2.c
minix.h fs: port ->getattr() to pass mnt_idmap 2024-10-16 09:37:45 +08:00
namei.c fs: port ->tmpfile() to pass mnt_idmap 2024-10-16 10:45:10 +08:00