[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220622153815.6f2e671a@canb.auug.org.au>
Date: Wed, 22 Jun 2022 15:38:15 +1000
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: Andrew Morton <akpm@...ux-foundation.org>,
Matthew Wilcox <willy@...radead.org>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linux Next Mailing List <linux-next@...r.kernel.org>,
Muchun Song <songmuchun@...edance.com>
Subject: linux-next: manual merge of the mm tree with the folio tree
Hi all,
Today's linux-next merge of the mm tree got a conflict in:
mm/vmscan.c
between commit:
15077be8badc ("vmscan: Add check_move_unevictable_folios()")
from the folio tree and commits:
cca700a8e695 ("mm: lru: use lruvec lock to serialize memcg changes")
from the mm tree.
I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging. You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.
--
Cheers,
Stephen Rothwell
diff --cc mm/vmscan.c
index 04f8671caad9,60335f974803..000000000000
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@@ -4823,18 -4856,22 +4873,17 @@@ void check_move_unevictable_folios(stru
int pgrescued = 0;
int i;
- for (i = 0; i < pvec->nr; i++) {
- struct page *page = pvec->pages[i];
- struct folio *folio = page_folio(page);
- int nr_pages;
-
- if (PageTransTail(page))
- continue;
+ for (i = 0; i < fbatch->nr; i++) {
+ struct folio *folio = fbatch->folios[i];
+ int nr_pages = folio_nr_pages(folio);
- nr_pages = folio_nr_pages(folio);
pgscanned += nr_pages;
- /* block memcg migration while the folio moves between lrus */
- if (!folio_test_clear_lru(folio))
+ lruvec = folio_lruvec_relock_irq(folio, lruvec);
+ if (!folio_test_lru(folio) || !folio_test_unevictable(folio))
continue;
- lruvec = folio_lruvec_relock_irq(folio, lruvec);
- if (folio_evictable(folio) && folio_test_unevictable(folio)) {
+ if (folio_evictable(folio)) {
lruvec_del_folio(lruvec, folio);
folio_clear_unevictable(folio);
lruvec_add_folio(lruvec, folio);
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists