]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: remove some boilerplate from xfs_attr_set
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:22:50 +0000 (16:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:03 +0000 (17:01 -0700)
commitffe71f1334dd25d087ddf49d8fb4d317f334e9c0
treebd4b5b611fdbb57eef9d1c3186fad2399c16b495
parent055af989dece4d8c70759477c28d42d11cc61d1d
xfs: remove some boilerplate from xfs_attr_set

Source kernel commit: e7420e75ef04787bc51688fc9bbca7da4d164a1e

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>
libxfs/xfs_attr.c