The patch titled Subject: mm/page_isolation: use macro to judge the alignment has been added to the -mm tree. Its filename is mm-page_isolation-use-micro-to-judge-the-alignment.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-page_isolation-use-micro-to-judge-the-alignment.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-page_isolation-use-micro-to-judge-the-alignment.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Naoya Horiguchi <n-horiguchi@xxxxxxxxxxxxx> Subject: mm/page_isolation: use macro to judge the alignment Signed-off-by: Wang Xiaoqiang <wangxq10@xxxxxxxxxx> Reviewed-by: Naoya Horiguchi <n-horiguchi@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/page_isolation.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN mm/page_isolation.c~mm-page_isolation-use-micro-to-judge-the-alignment mm/page_isolation.c --- a/mm/page_isolation.c~mm-page_isolation-use-micro-to-judge-the-alignment +++ a/mm/page_isolation.c @@ -165,8 +165,8 @@ int start_isolate_page_range(unsigned lo 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; _ Patches currently in -mm which might be from n-horiguchi@xxxxxxxxxxxxx are mm-zonelist-enumerate-zonelists-array-index-fix-fix.patch mm-zonelist-enumerate-zonelists-array-index-fix-fix-fix.patch mm-page_isolation-use-micro-to-judge-the-alignment.patch rmap-add-argument-to-charge-compound-page-fix.patch mm-hwpoison-adjust-for-new-thp-refcounting.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html