mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [to-be-updated] mm-vmscan-put-the-redirtied-madv_free-pages-back-to-anonymous-lru-list.patch removed from -mm tree
@ 2021-07-20 23:32 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2021-07-20 23:32 UTC (permalink / raw)
  To: mm-commits, willy, vbabka, shli, minchan, mhocko, iamjoonsoo.kim,
	hillf.zj, hannes, david, axboe, apopple, alexs, linmiaohe


The patch titled
     Subject: mm/vmscan: put the redirtied MADV_FREE pages back to anonymous LRU list
has been removed from the -mm tree.  Its filename was
     mm-vmscan-put-the-redirtied-madv_free-pages-back-to-anonymous-lru-list.patch

This patch was dropped because an updated version will be merged

------------------------------------------------------
From: Miaohe Lin <linmiaohe@huawei.com>
Subject: mm/vmscan: put the redirtied MADV_FREE pages back to anonymous LRU list

Patch series "Cleanup and fixup for vmscan".

This series contains cleanups to remove unneeded return value, misleading
comment and so on.  Also this puts the redirtied MADV_FREE pages back to
anonymous LRU list.  More details can be found in the respective
changelogs.


This patch (of 5):

If the MADV_FREE pages are redirtied before they could be reclaimed, put
the pages back to anonymous LRU list by setting SwapBacked flag and the
pages will be reclaimed in normal swapout way.  Otherwise MADV_FREE pages
won't be reclaimed as expected.

Link: https://lkml.kernel.org/r/20210710100329.49174-1-linmiaohe@huawei.com
Link: https://lkml.kernel.org/r/20210710100329.49174-2-linmiaohe@huawei.com
Fixes: 802a3a92ad7a ("mm: reclaim MADV_FREE pages")
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Alex Shi <alexs@kernel.org>
Cc: Alistair Popple <apopple@nvidia.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Minchan Kim <minchan@kernel.org>
Cc: David Hildenbrand <david@redhat.com>
Cc: Shaohua Li <shli@fb.com>
Cc: Hillf Danton <hillf.zj@alibaba-inc.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/vmscan.c |    1 +
 1 file changed, 1 insertion(+)

--- a/mm/vmscan.c~mm-vmscan-put-the-redirtied-madv_free-pages-back-to-anonymous-lru-list
+++ a/mm/vmscan.c
@@ -1628,6 +1628,7 @@ static unsigned int shrink_page_list(str
 			if (!page_ref_freeze(page, 1))
 				goto keep_locked;
 			if (PageDirty(page)) {
+				SetPageSwapBacked(page);
 				page_ref_unfreeze(page, 1);
 				goto keep_locked;
 			}
_

Patches currently in -mm which might be from linmiaohe@huawei.com are

mm-vmscan-remove-misleading-setting-to-sc-priority.patch
mm-vmscan-remove-unneeded-return-value-of-kswapd_run.patch
mm-vmscan-add-else-to-remove-check_pending-label.patch
mm-vmstat-correct-some-wrong-comments.patch
mm-vmstat-simplify-the-array-size-calculation.patch
mm-vmstat-remove-unneeded-return-value.patch
mm-zsmallocc-close-race-window-between-zs_pool_dec_isolated-and-zs_unregister_migration.patch
mm-zsmallocc-combine-two-atomic-ops-in-zs_pool_dec_isolated.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-20 23:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-20 23:32 [to-be-updated] mm-vmscan-put-the-redirtied-madv_free-pages-back-to-anonymous-lru-list.patch removed from -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).