diff options
author | Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> | 2016-01-14 15:22:13 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-14 16:00:49 -0800 |
commit | fec174d6699e2e39d34c7c6ee2fe360e518e68c0 (patch) | |
tree | b5b72095344ebed26c932caa4879fe85ad92b4bc /mm/page_isolation.c | |
parent | 543dfb2df8ebb3eb0b499eae1d63de1701a99b40 (diff) | |
download | op-kernel-dev-fec174d6699e2e39d34c7c6ee2fe360e518e68c0.zip op-kernel-dev-fec174d6699e2e39d34c7c6ee2fe360e518e68c0.tar.gz |
mm/page_isolation: use macro to judge the alignment
Signed-off-by: Wang Xiaoqiang <wangxq10@lzu.edu.cn>
Reviewed-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_isolation.c')
-rw-r--r-- | mm/page_isolation.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/page_isolation.c b/mm/page_isolation.c index f484b93..5e139fe 100644 --- a/mm/page_isolation.c +++ b/mm/page_isolation.c @@ -165,8 +165,8 @@ int start_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn, unsigned long undo_pfn; struct page *page; - BUG_ON((start_pfn) & (pageblock_nr_pages - 1)); - BUG_ON((end_pfn) & (pageblock_nr_pages - 1)); + BUG_ON(!IS_ALIGNED(start_pfn, pageblock_nr_pages)); + BUG_ON(!IS_ALIGNED(end_pfn, pageblock_nr_pages)); for (pfn = start_pfn; pfn < end_pfn; |