]> git.baikalelectronics.ru Git - kernel.git/commit
mm: remove BUG_ON() in __isolate_free_page()
authorKefeng Wang <wangkefeng.wang@huawei.com>
Thu, 1 Sep 2022 01:50:43 +0000 (09:50 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 Sep 2022 03:26:11 +0000 (20:26 -0700)
commit0a11c00aaa47b41d76df88d13d33b0e23f559e4a
tree5735505ba99f388f5afc07078b3cd777f4a7eeb1
parent2007871e769d4b8f7dc249d543cccad6c0c1bfff
mm: remove BUG_ON() in __isolate_free_page()

Drop unneed comment and blank, adjust the variable, and the most important
is to delete BUG_ON().  The page passed is always buddy page into
__isolate_free_page() from compaction, page_isolation and page_reporting,
and the caller also check the return, BUG_ON() is a too drastic measure,
remove it.

Link: https://lkml.kernel.org/r/20220901015043.189276-1-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c