]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_db: remove some boilerplate from xfs_attr_set
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:23:25 +0000 (16:23 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:12 +0000 (17:01 -0700)
commit28488a3590b1cb0008fe5934ad2e56df40cf9d8c
treea143c69b0a2e52a1f951754b94ef6143d83c6248
parent4b327cc2f5d03b772dd6d3352cbe28452cd41ef0
xfs_db: 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>
db/attrset.c
libxfs/libxfs_api_defs.h