xfs: make the reserved block permission flag explicit in xfs_attr_set
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 16:48:07 +0000 (09:48 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 23 Apr 2024 14:47:03 +0000 (07:47 -0700)
commitbf61c36a45d4c215994699a7a06a00c58d22e8a2
treea4de94d1c99f4ca929e9deb615304db0431099db
parente7420e75ef04787bc51688fc9bbca7da4d164a1e
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>
fs/xfs/libxfs/xfs_attr.c
fs/xfs/libxfs/xfs_attr.h
fs/xfs/scrub/attr_repair.c
fs/xfs/xfs_xattr.c