slub: Set __GFP_COMP in kmem_cache by default
authorHaifeng Xu <haifeng.xu@shopee.com>
Sat, 13 Apr 2024 15:56:03 +0000 (15:56 +0000)
committerVlastimil Babka <vbabka@suse.cz>
Mon, 15 Apr 2024 14:50:28 +0000 (16:50 +0200)
commit5b15f3fb89fc23b52c3cf33e76a1ada83108b438
tree688d7224f7f387d4824ddcedf29ce2a0eb8b7c22
parent5aa5c7b9a09dfce2761c46579cc421708492e890
slub: Set __GFP_COMP in kmem_cache by default

Now the __GFP_COMP is set only if the higher-order is not 0. However,
__GFP_COMP flag can be set unconditionally because compound page can
not be created in the order-0 case. And this can also simplify the code
a bit (no need to check the order is 0 or not).

Signed-off-by: Haifeng Xu <haifeng.xu@shopee.com>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
mm/slub.c