summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2024-04-22 19:48:07 +0300
committerDarrick J. Wong <djwong@kernel.org>2024-04-23 17:47:03 +0300
commitbf61c36a45d4c215994699a7a06a00c58d22e8a2 (patch)
treea4de94d1c99f4ca929e9deb615304db0431099db /fs/xfs/scrub
parente7420e75ef04787bc51688fc9bbca7da4d164a1e (diff)
downloadlinux-bf61c36a45d4c215994699a7a06a00c58d22e8a2.tar.xz
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/scrub')
-rw-r--r--fs/xfs/scrub/attr_repair.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/scrub/attr_repair.c b/fs/xfs/scrub/attr_repair.c
index 67c0ec0d1dbb..cbcc446d5119 100644
--- a/fs/xfs/scrub/attr_repair.c
+++ b/fs/xfs/scrub/attr_repair.c
@@ -606,7 +606,7 @@ xrep_xattr_insert_rec(
* already exists, we'll just drop it during the rebuild.
*/
xfs_attr_sethash(&args);
- error = xfs_attr_set(&args, XFS_ATTRUPDATE_CREATE);
+ error = xfs_attr_set(&args, XFS_ATTRUPDATE_CREATE, false);
if (error == -EEXIST)
error = 0;