summaryrefslogtreecommitdiff
path: root/net/ipv4
diff options
context:
space:
mode:
authorHuan Yang <link@vivo.com>2024-08-26 14:40:48 +0800
committerAndrew Morton <akpm@linux-foundation.org>2024-09-09 16:39:05 -0700
commit94deaf69dcd33462c61fa8cabb0883e3085a1046 (patch)
tree023e6e80c8ea7ba9b9f6841853be25a461c5f852 /net/ipv4
parent536ab838a5b37b6ae3f8d53552560b7c51daeb41 (diff)
mm: page_alloc: simpify page del and expand
When page del from buddy and need expand, it will account free_pages in zone's migratetype. The current way is to subtract the page number of the current order when deleting, and then add it back when expanding. This is unnecessary, as when migrating the same type, we can directly record the difference between the high-order pages and the expand added, and then subtract it directly. This patch merge that, only when del and expand done, then account free_pages. Link: https://lkml.kernel.org/r/20240826064048.187790-1-link@vivo.com Signed-off-by: Huan Yang <link@vivo.com> Reviewed-by: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions