xfs: create an xattr iteration function for scrub
authorDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:54:48 +0000 (14:54 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:58:54 +0000 (14:58 -0700)
commit6c631e79e73c7122c890ef943f8ca9aab9e1dec8
tree0d1667dd037057ef5c338a6f7b22828e1544a2ef
parent40190f9f918aaf3355c8f777e6e658ea3bf77870
xfs: create an xattr iteration function for scrub

Create a streamlined function to walk a file's xattrs, without all the
cursor management stuff in the regular listxattr.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/Makefile
fs/xfs/scrub/attr.c
fs/xfs/scrub/dab_bitmap.h [new file with mode: 0644]
fs/xfs/scrub/listxattr.c [new file with mode: 0644]
fs/xfs/scrub/listxattr.h [new file with mode: 0644]