xfs: use shmem_get_folio in xfile_obj_store
authorChristoph Hellwig <hch@lst.de>
Mon, 19 Feb 2024 06:27:24 +0000 (07:27 +0100)
committerChandan Babu R <chandanbabu@kernel.org>
Wed, 21 Feb 2024 06:06:54 +0000 (11:36 +0530)
commitfd2634e2dd4539f96ab9e037f62ad2828f7a15eb
treed6117ab0dc6138837103adaf13e802e240d364c9
parente62e26acc9ab85e996eff660318109470eae2607
xfs: use shmem_get_folio in xfile_obj_store

Switch to using shmem_get_folio and manually dirtying the page instead
of abusing aops->write_begin and aops->write_end in xfile_get_page.

This simplifies the code by not doing indirect calls of not actually
exported interfaces that don't really fit the use case very well, and
happens to get us large folio support for free.

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