xfs: add a per-leaf block callback to xchk_xattr_walk
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 16:48:15 +0000 (09:48 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 23 Apr 2024 23:55:15 +0000 (16:55 -0700)
commit6efbbdeb140603351e1413aee79e789bf2279a2b
treeca6d101fa639a8b85447519d3f4d15c247f1dc65
parent55edcd1f86474f973fccf5c5ccc8bc7908893142
xfs: add a per-leaf block callback to xchk_xattr_walk

Add a second callback function to xchk_xattr_walk so that we can do
something in between attr leaf blocks.  This will be used by the next
patch to see if we should flush cached parent pointer updates to
constrain memory usage.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/scrub/attr.c
fs/xfs/scrub/dir_repair.c
fs/xfs/scrub/listxattr.c
fs/xfs/scrub/listxattr.h
fs/xfs/scrub/nlinks.c
fs/xfs/scrub/parent.c