reiserfs: Convert to writepages
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 5 Mar 2024 18:52:05 +0000 (18:52 +0000)
committerJan Kara <jack@suse.cz>
Fri, 12 Apr 2024 11:51:17 +0000 (13:51 +0200)
commit4f8cf60ac18bee62e8c58654a300eb44b96caf09
treed027bd5f07a64e51c76bf93e22ba29773121c724
parent3b84adf460381169c085e4bc09e7b57e9e16db0a
reiserfs: Convert to writepages

Use buffer_migrate_folio to handle folio migration instead of writing
out dirty pages and reading them back in again.  Use writepages to write
out folios more efficiently.  We now only do that wait_on_write_block
check once per call to writepages instead of once per page.  It would be
possible to do one transaction per writeback run, but that's a bit of a
big change to do to this old filesystem, so leave it as one transaction
per folio (and leave reiserfs supporting only one page per folio).

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jan Kara <jack@suse.cz>
Message-Id: <20240305185208.1200166-1-willy@infradead.org>
fs/reiserfs/inode.c