xfs: enable discarding of folios backing an xfile
authorDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:54:42 +0000 (14:54 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:58:53 +0000 (14:58 -0700)
commit98339edf0750e75e216521961c98c8105a830bf8
treea0e31e8dcca0a1ef494b3f47bba53b409d762e8a
parentfe6c9f8e48e0dcbfc3dba17edd88490c8579b34b
xfs: enable discarding of folios backing an xfile

Create a new xfile function to discard the page cache that's backing
part of an xfile.  The next patch wil use this to drop parts of an xfile
that aren't needed anymore.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/scrub/trace.h
fs/xfs/scrub/xfile.c
fs/xfs/scrub/xfile.h