diff options
author | 2024-02-15 07:36:42 +0100 | |
---|---|---|
committer | 2024-02-23 17:48:36 -0800 | |
commit | b1793929b7dc17842a5e4377796b005d3efd61bc (patch) | |
tree | cd6784ec220ef5e3121ee6a8c5fe56d6c5ac26c1 /include/linux/writeback.h | |
parent | writeback: rework the loop termination condition in write_cache_pages (diff) | |
download | linux-rng-b1793929b7dc17842a5e4377796b005d3efd61bc.tar.xz linux-rng-b1793929b7dc17842a5e4377796b005d3efd61bc.zip |
writeback: factor folio_prepare_writeback() out of write_cache_pages()
Reduce write_cache_pages() by about 30 lines; much of it is commentary,
but it all bundles nicely into an obvious function.
[hch@lst.de: rename should_writeback_folio to folio_prepare_writeback per Jan]
Link: https://lkml.kernel.org/r/20240215063649.2164017-8-hch@lst.de
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Acked-by: Dave Chinner <dchinner@redhat.com>
Cc: Christian Brauner <brauner@kernel.org>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/writeback.h')
0 files changed, 0 insertions, 0 deletions