]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mm/page_alloc: harmonize should_compact_retry() type
authorBrendan Jackman <jackmanb@google.com>
Tue, 26 Aug 2025 14:06:54 +0000 (14:06 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 13 Sep 2025 23:55:18 +0000 (16:55 -0700)
commit6c3826173e6aece0f7375392f509065b6944fd35
tree4a9d70156a9e304ade130b48b870c8978481cc1b
parentef49b7b39d50b9e4f9d63e64f5d8acafe3c71158
mm/page_alloc: harmonize should_compact_retry() type

Currently order is signed in one version of the function and unsigned in
the other. Tidy that up.

In page_alloc.c, order is unsigned in the vast majority of cases. But,
there is a cluster of exceptions in compaction-related code (probably
stemming from the fact that compact_control.order is signed). So, prefer
local consistency and make this one signed too.

Link: https://lkml.kernel.org/r/20250826-cleanup-should_compact_retry-v1-1-d2ca89727fcf@google.com
Signed-off-by: Brendan Jackman <jackmanb@google.com>
Reviewed-by: Zi Yan <ziy@nvidia.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c