diff options
author | 2024-02-15 07:36:45 +0100 | |
---|---|---|
committer | 2024-02-23 17:48:37 -0800 | |
commit | 535c5d9dadb327bb35f6d780fa037e0d3dfcb568 (patch) | |
tree | 6d66ab2d14acb02dc2469d5807e05e786a80ee9f /mm/page_idle.c | |
parent | writeback: simplify the loops in write_cache_pages() (diff) | |
download | linux-535c5d9dadb327bb35f6d780fa037e0d3dfcb568.tar.gz linux-535c5d9dadb327bb35f6d780fa037e0d3dfcb568.tar.bz2 linux-535c5d9dadb327bb35f6d780fa037e0d3dfcb568.zip |
pagevec: add ability to iterate a queue
Add a loop counter inside the folio_batch to let us iterate from 0-nr
instead of decrementing nr and treating the batch as a stack. It would
generate some very weird and suboptimal I/O patterns for page writeback to
iterate over the batch as a stack.
Link: https://lkml.kernel.org/r/20240215063649.2164017-11-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 'mm/page_idle.c')
0 files changed, 0 insertions, 0 deletions