projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4efe48
)
mm/page_isolation.c: fix a wrong flag in set_migratetype_isolate()
author
Qian Cai
<
[email protected]
>
Fri, 29 Mar 2019 03:44:21 +0000
(20:44 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 29 Mar 2019 17:01:37 +0000
(10:01 -0700)
Due to has_unmovable_pages() taking an incorrect irqsave flag instead of
the isolation flag in set_migratetype_isolate(), there are issues with
HWPOSION and error reporting where dump_page() is not called when there
is an unmovable page.
Link:
http://lkml.kernel.org/r/
[email protected]
Fixes: d381c54760dc ("mm: only report isolation failures when offlining memory")
Acked-by: Michal Hocko <
[email protected]
>
Reviewed-by: Oscar Salvador <
[email protected]
>
Signed-off-by: Qian Cai <
[email protected]
>
Cc: <
[email protected]
> [5.0.x]
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/page_isolation.c
patch
|
blob
|
history
diff --git
a/mm/page_isolation.c
b/mm/page_isolation.c
index bf4159d771c79b8e4ded0b3f9df960e1ac24c433..019280712e1b8b7e075b51573b5c56d07aef3922 100644
(file)
--- a/
mm/page_isolation.c
+++ b/
mm/page_isolation.c
@@
-59,7
+59,8
@@
static int set_migratetype_isolate(struct page *page, int migratetype, int isol_
* FIXME: Now, memory hotplug doesn't call shrink_slab() by itself.
* We just check MOVABLE pages.
*/
- if (!has_unmovable_pages(zone, page, arg.pages_found, migratetype, flags))
+ if (!has_unmovable_pages(zone, page, arg.pages_found, migratetype,
+ isol_flags))
ret = 0;
/*