diff options
author | 2024-03-20 14:02:07 -0400 | |
---|---|---|
committer | 2024-04-25 20:56:02 -0700 | |
commit | 9cbe97bad5cd75b5b493734bd2695febb8e95281 (patch) | |
tree | 8aecf3ebca5a64eee699068b88c8331bf0ab2081 /mm/debug_page_alloc.c | |
parent | mm: page_alloc: remove pcppage migratetype caching (diff) | |
download | wireguard-linux-9cbe97bad5cd75b5b493734bd2695febb8e95281.tar.xz wireguard-linux-9cbe97bad5cd75b5b493734bd2695febb8e95281.zip |
mm: page_alloc: optimize free_unref_folios()
Move direct freeing of isolated pages to the lock-breaking block in the
second loop. This saves an unnecessary migratetype reassessment.
Minor comment and local variable scoping cleanups.
Link: https://lkml.kernel.org/r/20240320180429.678181-3-hannes@cmpxchg.org
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Suggested-by: Vlastimil Babka <vbabka@suse.cz>
Tested-by: "Huang, Ying" <ying.huang@intel.com>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Tested-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Zi Yan <ziy@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/debug_page_alloc.c')
0 files changed, 0 insertions, 0 deletions