xfs: teach xfile to pass back direct-map pages to caller
authorDarrick J. Wong <djwong@kernel.org>
Thu, 10 Aug 2023 14:48:05 +0000 (07:48 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 10 Aug 2023 14:48:05 +0000 (07:48 -0700)
commit137db333b29186ad085d593c8a702e9f0e9c43f4
treea818a18d232013ad80e93c123aee651a6d2f3e33
parentc390c6450318345b3caa1996a4ef1367477a5aa8
xfs: teach xfile to pass back direct-map pages to caller

Certain xfile array operations (such as sorting) can be sped up quite a
bit by allowing xfile users to grab a page to bulk-read the records
contained within it.  Create helper methods to facilitate this.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Kent Overstreet <kent.overstreet@linux.dev>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/scrub/trace.h
fs/xfs/scrub/xfile.c
fs/xfs/scrub/xfile.h