]> git.ipfire.org Git - thirdparty/linux.git/commit
reiserfs: rework priv inode handling
authorChristian Brauner <brauner@kernel.org>
Wed, 1 Feb 2023 13:14:59 +0000 (14:14 +0100)
committerChristian Brauner (Microsoft) <brauner@kernel.org>
Mon, 6 Mar 2023 08:57:13 +0000 (09:57 +0100)
commitd9f892b9bdc22b12bc960837a09f014d5a324975
treeb59aa0c6871a17c7028cb921badf7098225b3b06
parentd549b741740e63e87e661754e2d1b336fdc51d50
reiserfs: rework priv inode handling

Reiserfs is the only filesystem that removes IOP_XATTR without also
using a set of dedicated inode operations at the same time that nop all
xattr related inode operations. This means we need to have a IOP_XATTR
check in vfs_listxattr() instead of just being able to check for
->listxatt() being implemented.

Introduce a dedicated set of nop inode operations that are used when
IOP_XATTR is removed, allowing us to remove that check from
vfs_listxattr(). This in turn allows us to completely decouple POSIX ACLs from
IOP_XATTR.

Cc: reiserfs-devel@vger.kernel.org
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
fs/reiserfs/file.c
fs/reiserfs/inode.c
fs/reiserfs/namei.c
fs/reiserfs/reiserfs.h
fs/reiserfs/xattr.c