writeback-factor-writeback_get_batch-out-of-write_cache_pages.patch removed from -mm tree
The quilt patch titled
Subject: writeback: factor writeback_get_batch() out of write_cache_pages()
has been removed from the -mm tree. Its filename was
writeback-factor-writeback_get_batch-out-of-write_cache_pages.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: "Matthew Wilcox (Oracle)" <[email protected]>
Subject: writeback: factor writeback_get_batch() out of write_cache_pages()
Date: Thu, 15 Feb 2024 07:36:43 +0100
This simple helper will be the basis of the writeback iterator. To make this work, we need to remember the current index and end positions in writeback_control.
---
include/linux/writeback.h | 6 +++ mm/page-writeback.c | 60 ++++++++++++++++++++++-------------- 2 files changed, 44 insertions(+), 22 deletions(-)
include/linux/writeback.h renamed from include/linux/writeback.h~writeback-factor-writeback_get_batch-out-of-write_cache_pages +6 -0
@@ -11,6 +11,7 @@#include <linux/flex_proportions.h> #include <linux/backing-dev-defs.h> #include <linux/blk_types.h> +#include <linux/pagevec.h> struct bio ;
@@ -40,6 +41,7 @@ enum writeback_sync_modes {* in a manner such that unspecified fields are set to zero. */ struct writeback_control { +/* public fields that can be set and/or consumed by the caller: */ long nr_to_write;/* Write this many pages, and decrement this for each page written */ long pages_skipped;/* Pages which were not written */
@@ -77,6 +79,10 @@ struct writeback_control {*/ struct swap_iocb **swap_plug; +/* internal fields used by the ->writepages implementation: */ +struct folio_batch fbatch; +pgoff_t index; +#ifdef CONFIG_CGROUP_WRITEBACK struct bdi_writeback *wb;/* wb this writeback is issued under */ struct inode *inode;/* inode being written out */
mm/page-writeback.c renamed from mm/page-writeback.c~writeback-factor-writeback_get_batch-out-of-write_cache_pages +38 -22
103 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are