[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-mm-commits
Subject: + mm-gup-add-folio-to-list-when-folio_isolate_lru-succeed.patch added to mm-unstable branch
From: Andrew Morton <akpm () linux-foundation ! org>
Date: 2023-01-31 23:18:25
Message-ID: 20230131231825.95D37C433EF () smtp ! kernel ! org
[Download RAW message or body]
The patch titled
Subject: mm/gup: add folio to list when folio_isolate_lru() succeed
has been added to the -mm mm-unstable branch. Its filename is
mm-gup-add-folio-to-list-when-folio_isolate_lru-succeed.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-gup-add-folio-to-list-when-folio_isolate_lru-succeed.patch
This patch will later appear in the mm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code \
***
The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: Kuan-Ying Lee <Kuan-Ying.Lee@mediatek.com>
Subject: mm/gup: add folio to list when folio_isolate_lru() succeed
Date: Tue, 31 Jan 2023 14:32:06 +0800
If we call folio_isolate_lru() successfully, we will get return value 0.
We need to add this folio to the movable_pages_list.
Link: https://lkml.kernel.org/r/20230131063206.28820-1-Kuan-Ying.Lee@mediatek.com
Fixes: 67e139b02d99 ("mm/gup.c: refactor check_and_migrate_movable_pages()")
Signed-off-by: Kuan-Ying Lee <Kuan-Ying.Lee@mediatek.com>
Cc: Alistair Popple <apopple@nvidia.com>
Cc: Andrew Yang <andrew.yang@mediatek.com>
Cc: Chinwen Chang <chinwen.chang@mediatek.com>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/gup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/mm/gup.c~mm-gup-add-folio-to-list-when-folio_isolate_lru-succeed
+++ a/mm/gup.c
@@ -1914,7 +1914,7 @@ static unsigned long collect_longterm_un
drain_allow = false;
}
- if (!folio_isolate_lru(folio))
+ if (folio_isolate_lru(folio))
continue;
list_add_tail(&folio->lru, movable_page_list);
_
Patches currently in -mm which might be from Kuan-Ying.Lee@mediatek.com are
kasan-infer-allocation-size-by-scanning-metadata.patch
mm-gup-add-folio-to-list-when-folio_isolate_lru-succeed.patch
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic