xfs: add file_{get,put}_folio
authorDarrick J. Wong <djwong@kernel.org>
Mon, 19 Feb 2024 06:27:26 +0000 (07:27 +0100)
committerChandan Babu R <chandanbabu@kernel.org>
Wed, 21 Feb 2024 06:06:54 +0000 (11:36 +0530)
commit6907e3c00a4023d2456d17ba156d1e03aec4f185
treea5e85d0d27aead754dfe6b76f3e84b723b107f39
parente97d70a57370817af59bb83f4219cd8aa63b81ed
xfs: add file_{get,put}_folio

Add helper similar to file_{get,set}_page, but which deal with folios
and don't allocate new folio unless explicitly asked to, which map
to shmem_get_folio instead of calling into the aops.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Kent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/scrub/trace.h
fs/xfs/scrub/xfile.c
fs/xfs/scrub/xfile.h