From e1a9aa973cad74c15ad9baf4f4d9ce29f8a6626e Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Fri, 13 Dec 2024 19:44:18 +0100 Subject: [PATCH] Revert "bug on !PageSlab && !PageCompound in ksize" This reverts commit 0fc6163cd6630a6dc7eb66cd4bd0c49e49c95698. --- mm/slub.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mm/slub.c b/mm/slub.c index 30b0bd125..de4ca2280 100755 --- a/mm/slub.c +++ b/mm/slub.c @@ -4369,11 +4369,7 @@ size_t __ksize(const void *object) page = virt_to_head_page(object); if (unlikely(!PageSlab(page))) { -#ifdef CONFIG_BUG_ON_DATA_CORRUPTION - BUG_ON(!PageCompound(page)); -#else WARN_ON(!PageCompound(page)); -#endif return page_size(page); }