summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_xattr.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2024-04-22 09:48:07 -0700
committerDarrick J. Wong <djwong@kernel.org>2024-04-23 07:47:03 -0700
commitbf61c36a45d4c215994699a7a06a00c58d22e8a2 (patch)
treea4de94d1c99f4ca929e9deb615304db0431099db /fs/xfs/xfs_xattr.c
parente7420e75ef04787bc51688fc9bbca7da4d164a1e (diff)
downloadlinux-bf61c36a45d4c215994699a7a06a00c58d22e8a2.tar.gz
linux-bf61c36a45d4c215994699a7a06a00c58d22e8a2.tar.bz2
linux-bf61c36a45d4c215994699a7a06a00c58d22e8a2.zip
xfs: make the reserved block permission flag explicit in xfs_attr_set
Make the use of reserved blocks an explicit parameter to xfs_attr_set. Userspace setting XFS_ATTR_ROOT attrs should continue to be able to use it, but for online repairs we can back out and therefore do not care. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_xattr.c')
-rw-r--r--fs/xfs/xfs_xattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_xattr.c b/fs/xfs/xfs_xattr.c
index bbdbe9026658..ab3d22f662f2 100644
--- a/fs/xfs/xfs_xattr.c
+++ b/fs/xfs/xfs_xattr.c
@@ -110,7 +110,7 @@ xfs_attr_change(
args->whichfork = XFS_ATTR_FORK;
xfs_attr_sethash(args);
- return xfs_attr_set(args, op);
+ return xfs_attr_set(args, op, args->attr_filter & XFS_ATTR_ROOT);
}