mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 22:21:42 +00:00
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>
This commit is contained in:
parent
543dfb2df8
commit
fec174d669
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user