diff options
-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 f484b9300fe3..5e139fec6c6c 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, | |||
165 | unsigned long undo_pfn; | 165 | unsigned long undo_pfn; |
166 | struct page *page; | 166 | struct page *page; |
167 | 167 | ||
168 | BUG_ON((start_pfn) & (pageblock_nr_pages - 1)); | 168 | BUG_ON(!IS_ALIGNED(start_pfn, pageblock_nr_pages)); |
169 | BUG_ON((end_pfn) & (pageblock_nr_pages - 1)); | 169 | BUG_ON(!IS_ALIGNED(end_pfn, pageblock_nr_pages)); |
170 | 170 | ||
171 | for (pfn = start_pfn; | 171 | for (pfn = start_pfn; |
172 | pfn < end_pfn; | 172 | pfn < end_pfn; |