xfs: remove some boilerplate from xfs_attr_set
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 16:48:06 +0000 (09:48 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 23 Apr 2024 14:47:03 +0000 (07:47 -0700)
commite7420e75ef04787bc51688fc9bbca7da4d164a1e
tree528ada4f72e85e5327f2792e71df149e5a4ae0a5
parent59a2af9086f0d60fc8de7346da67db7d764c7221
xfs: remove some boilerplate from xfs_attr_set

In preparation for online/offline repair wanting to use xfs_attr_set,
move some of the boilerplate out of this function into the callers.
Repair can initialize the da_args completely, and the userspace flag
handling/twisting goes away once we move it to xfs_attr_change.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_attr.c
fs/xfs/scrub/attr_repair.c
fs/xfs/xfs_xattr.c