mm-__isolate_lru_page_prepare-in-isolate_migratepages_block.patch removed from -mm tree
The patch titled
Subject: mm: __isolate_lru_page_prepare() in isolate_migratepages_block()
has been removed from the -mm tree. Its filename was
mm-__isolate_lru_page_prepare-in-isolate_migratepages_block.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Hugh Dickins <[email protected]>
Subject: mm: __isolate_lru_page_prepare() in isolate_migratepages_block()
__isolate_lru_page_prepare() conflates two unrelated functions, with the flags to one disjoint from the flags to the other; and hides some of the important checks outside of isolate_migratepages_block(), where the sequence is better to be visible. It comes from the days of lumpy reclaim, before compaction, when the combination made more sense.
Move what's needed by mm/compaction.c isolate_migratepages_block() inline there, and what's needed by mm/vmscan.c isolate_lru_pages() inline there.
Shorten "isolate_mode" to "mode", so the sequence of conditions is easier to read. Declare a "mapping" variable, to save one call to page_mapping() (but not another: calling again after page is locked is necessary). Simplify isolate_lru_pages() with a "move_to" list pointer.
---
include/linux/swap.h | 1 mm/compaction.c | 51 +++++++++++++++++--- mm/vmscan.c | 101 +++++++---------------------------------- 3 files changed, 62 insertions(+), 91 deletions(-)
include/linux/swap.h renamed from include/linux/swap.h~mm-__isolate_lru_page_prepare-in-isolate_migratepages_block +0 -1
@@ -387,7 +387,6 @@ extern void lru_cache_add_inactive_or_unextern unsigned long zone_reclaimable_pages (struct zone *zone);extern unsigned long try_to_free_pages (struct zonelist *zonelist,int order,gfp_t gfp_mask,nodemask_t *mask); -extern bool __isolate_lru_page_prepare (struct page *page,isolate_mode_t mode); extern unsigned long try_to_free_mem_cgroup_pages(struct mem_cgroup *memcg, unsigned long nr_pages, gfp_t gfp_mask,
mm/compaction.c renamed from mm/compaction.c~mm-__isolate_lru_page_prepare-in-isolate_migratepages_block +44 -7
95 lines not on this page · raw message
mm/vmscan.c renamed from mm/vmscan.c~mm-__isolate_lru_page_prepare-in-isolate_migratepages_block +18 -83
151 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are
mm-delete-__clearpagewaiters.patch mm-filemap_unaccount_folio-large-skip-mapcount-fixup.patch mm-thp-fix-nr_file_mapped-accounting-in-page__file_rmap.patch mm-warn-on-deleting-redirtied-only-if-accounted.patch mm-unmap_mapping_range_tree-with-i_mmap_rwsem-shared.patch