diff options
| author | KAMEZAWA Hiroyuki <[email protected]> | 2010-09-09 16:38:01 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2010-09-09 18:57:24 -0700 |
| commit | 0dcc48c15f63ee86c2fcd33968b08d651f0360a5 (patch) | |
| tree | d182a43200204be2fea04bcb80b824c6f4941267 /arch/powerpc/lib/code-patching.c | |
| parent | bc6930457460788e14b2c0808ed4632a1592bd61 (diff) | |
memory hotplug: fix next block calculation in is_removable
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 <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Wu Fengguang <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: KAMEZAWA Hiroyuki <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions