aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mm/debug_page_alloc.c
diff options
context:
space:
mode:
authorJohannes Weiner <hannes@cmpxchg.org>2024-03-20 14:02:07 -0400
committerAndrew Morton <akpm@linux-foundation.org>2024-04-25 20:56:02 -0700
commit9cbe97bad5cd75b5b493734bd2695febb8e95281 (patch)
tree8aecf3ebca5a64eee699068b88c8331bf0ab2081 /mm/debug_page_alloc.c
parentmm: page_alloc: remove pcppage migratetype caching (diff)
downloadwireguard-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