xfs: don't try to handle non-update pages in xfile_obj_load
authorChristoph Hellwig <hch@lst.de>
Mon, 19 Feb 2024 06:27:22 +0000 (07:27 +0100)
committerChandan Babu R <chandanbabu@kernel.org>
Wed, 21 Feb 2024 06:06:53 +0000 (11:36 +0530)
commit0e2a24afb99258acc147f7fbe6c1e178a951247d
tree86dbd040f7e34f92cae089312c5e2dfe5be29db8
parente47e2e0ba9103df7b3d25356421e6832c4d0e7be
xfs: don't try to handle non-update pages in xfile_obj_load

shmem_read_mapping_page_gfp always returns an uptodate page or an
ERR_PTR.  Remove the code that tries to handle a non-uptodate page.

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