diff options
author | Chen Wandun <chenwandun@huawei.com> | 2022-02-03 20:49:06 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-02-04 09:25:04 -0800 |
commit | a85468b766d3bc17c8b17ed23a36ef6469340bb2 (patch) | |
tree | 8aa2ba797cb19c0e17b0cf2716157af0baa9d195 /mm/debug_vm_pgtable.c | |
parent | 1f2cfdd349b7647f438c1e552dc1b983da86d830 (diff) | |
download | linux-a85468b766d3bc17c8b17ed23a36ef6469340bb2.tar.gz linux-a85468b766d3bc17c8b17ed23a36ef6469340bb2.tar.bz2 linux-a85468b766d3bc17c8b17ed23a36ef6469340bb2.zip |
Revert "mm/page_isolation: unset migratetype directly for non Buddy page"
This reverts commit 721fb891ad0b3956d5c168b2931e3e5e4fb7ca40.
Commit 721fb891ad0b ("mm/page_isolation: unset migratetype directly for
non Buddy page") will result memory that should in buddy disappear by
mistake. move_freepages_block moves all pages in pageblock instead of
pages indicated by input parameter, so if input pages is not in buddy
but other pages in pageblock is in buddy, it will result in page out of
control.
Link: https://lkml.kernel.org/r/20220126024436.13921-1-chenwandun@huawei.com
Fixes: 721fb891ad0b ("mm/page_isolation: unset migratetype directly for non Buddy page")
Signed-off-by: Chen Wandun <chenwandun@huawei.com>
Reported-by: "kernelci.org bot" <bot@kernelci.org>
Acked-by: David Hildenbrand <david@redhat.com>
Tested-by: Dong Aisheng <aisheng.dong@nxp.com>
Tested-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/debug_vm_pgtable.c')
0 files changed, 0 insertions, 0 deletions