]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: fix folio dirtying for XFILE_ALLOC callers
authorDarrick J. Wong <djwong@kernel.org>
Thu, 22 Aug 2024 23:59:17 +0000 (16:59 -0700)
committerChandan Babu R <chandanbabu@kernel.org>
Mon, 26 Aug 2024 04:21:27 +0000 (09:51 +0530)
commit5335affcff91b53cfc45694171f911cb23257c8b
tree2606823109e46f4507065930178af837c62b6112
parente21fea4ac3cf12eba1921fbbf7764bf69c6d4b2c
xfs: fix folio dirtying for XFILE_ALLOC callers

willy pointed out that folio_mark_dirty is the correct function to use
to mark an xfile folio dirty because it calls out to the mapping's aops
to mark it dirty.  For tmpfs this likely doesn't matter much since it
currently uses nop_dirty_folio, but let's use the abstractions properly.

Reported-by: willy@infradead.org
Fixes: 6907e3c00a40 ("xfs: add file_{get,put}_folio")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/scrub/xfile.c