]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_db: remove some boilerplate from xfs_attr_set
authorDarrick J. Wong <djwong@kernel.org>
Wed, 3 Jul 2024 21:21:25 +0000 (14:21 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:12:37 +0000 (17:12 -0700)
commit7c16092b18e7a7e1943c411d42146b32fd7f380d
treea143c69b0a2e52a1f951754b94ef6143d83c6248
parentc1c421557f799b75700f45233373b8972563f708
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