mm/slab: Optimize the code logic in find_mergeable()

We can first assess the flags, if it's unmergeable, there's no need
to calculate the size and align.

Signed-off-by: Xavier <xavier_qy@163.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
This commit is contained in:
Xavier 2024-09-04 15:40:37 +08:00 • committed by Vlastimil Babka
commit e02147cb70