mm: compaction: fix bit ranges in {get,clear,set}_pageblock_skip()
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Wed, 10 Oct 2012 22:53:55 +0000 (15:53 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 10 Oct 2012 23:50:14 +0000 (08:50 +0900)
commit627260595ca6abcb16d68a3732bac6b547e112d6
treee129ac3500e1636f6b1e2ffaf3cd1443557af32c
parent1633dbbacbaa3a2f95ef901caf9d0b32728c10b6
mm: compaction: fix bit ranges in {get,clear,set}_pageblock_skip()

{get,clear,set}_pageblock_skip() use incorrect bit ranges (please compare
to bit ranges used by {get,set}_pageblock_flags() used for migration
types) and can overwrite pageblock migratetype of the next pageblock in
the bitmap.

Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Tested-by: Thierry Reding <thierry.reding@avionic-design.de>
Acked-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/pageblock-flags.h