Please sign in to comment.
memory hotplug: fix next block calculation in is_removable
commit 0dcc48c upstream. next_active_pageblock() is for finding next _used_ freeblock. It skips several blocks when it finds there are a chunk of free pages lager than pageblock. But it has 2 bugs. 1. We have no lock. page_order(page) - pageblock_order can be minus. 2. pageblocks_stride += is wrong. it should skip page_order(p) of pages. Signed-off-by: KAMEZAWA Hiroyuki <firstname.lastname@example.org> Cc: Michal Hocko <email@example.com> Cc: Wu Fengguang <firstname.lastname@example.org> Cc: Mel Gorman <email@example.com> Cc: KAMEZAWA Hiroyuki <firstname.lastname@example.org> Signed-off-by: Andrew Morton <email@example.com> Signed-off-by: Linus Torvalds <firstname.lastname@example.org> Signed-off-by: Greg Kroah-Hartman <email@example.com>
- Loading branch information...