]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/memory-failure: remove obsolete MF_MSG_DIFFERENT_COMPOUND
authorMiaohe Lin <linmiaohe@huawei.com>
Mon, 8 Jul 2024 03:05:44 +0000 (11:05 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 12 Jul 2024 22:52:22 +0000 (15:52 -0700)
commit8a78882dac1c8c464e047a29415edb50421651ce
tree912008c604c86f655a5fcf2b7e5eb51a8ed4f69b
parenta5ea521250afdf3d70c72970660f44aebf56ea19
mm/memory-failure: remove obsolete MF_MSG_DIFFERENT_COMPOUND

The page cannot become compound pages again just after a folio is split as
an extra refcnt is held.  So the MF_MSG_DIFFERENT_COMPOUND case is
obsolete and can be removed to get rid of this false assumption and code
burden.  But add one WARN_ON() here to keep the situation clear.

Link: https://lkml.kernel.org/r/20240708030544.196919-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: Borislav Petkov (AMD) <bp@alien8.de>
Cc: Naoya Horiguchi <nao.horiguchi@gmail.com>
Cc: Tony Luck <tony.luck@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/ras/ras_event.h
mm/memory-failure.c