]> www.infradead.org Git - users/willy/xarray.git/commit
mm/slab: Optimize the code logic in find_mergeable()
authorXavier <xavier_qy@163.com>
Wed, 4 Sep 2024 07:40:37 +0000 (15:40 +0800)
committerVlastimil Babka <vbabka@suse.cz>
Thu, 5 Sep 2024 12:42:23 +0000 (14:42 +0200)
commite02147cb703412fa13dd31908c734d7fb2314f55
treec14a212f0109bc1c4e6e381c695496737b352665
parent59090e479ac78ae18facd4c58eb332562a23020e
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>
mm/slab_common.c