Searched hist:e8606320e9af9774fd879e71c940fc9e5fd9b901 (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/include/linux/ |
H A D | compaction.h | diff e8606320e9af9774fd879e71c940fc9e5fd9b901 Fri May 19 07:39:57 CDT 2023 Johannes Weiner <hannes@cmpxchg.org> mm: compaction: refactor __compaction_suitable()
__compaction_suitable() is supposed to check for available migration targets. However, it also checks whether the operation was requested via /proc/sys/vm/compact_memory, and whether the original allocation request can already succeed. These don't apply to all callsites.
Move the checks out to the callers, so that later patches can deal with them one by one. No functional change intended.
[hannes@cmpxchg.org: fix comment, per Vlastimil] Link: https://lkml.kernel.org/r/20230602144942.GC161817@cmpxchg.org Link: https://lkml.kernel.org/r/20230519123959.77335-4-hannes@cmpxchg.org Signed-off-by: Johannes Weiner <hannes@cmpxchg.org> Acked-by: Vlastimil Babka <vbabka@suse.cz> Cc: Mel Gorman <mgorman@techsingularity.net> Cc: Michal Hocko <mhocko@suse.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
|
/openbmc/linux/mm/ |
H A D | vmscan.c | diff e8606320e9af9774fd879e71c940fc9e5fd9b901 Fri May 19 07:39:57 CDT 2023 Johannes Weiner <hannes@cmpxchg.org> mm: compaction: refactor __compaction_suitable()
__compaction_suitable() is supposed to check for available migration targets. However, it also checks whether the operation was requested via /proc/sys/vm/compact_memory, and whether the original allocation request can already succeed. These don't apply to all callsites.
Move the checks out to the callers, so that later patches can deal with them one by one. No functional change intended.
[hannes@cmpxchg.org: fix comment, per Vlastimil] Link: https://lkml.kernel.org/r/20230602144942.GC161817@cmpxchg.org Link: https://lkml.kernel.org/r/20230519123959.77335-4-hannes@cmpxchg.org Signed-off-by: Johannes Weiner <hannes@cmpxchg.org> Acked-by: Vlastimil Babka <vbabka@suse.cz> Cc: Mel Gorman <mgorman@techsingularity.net> Cc: Michal Hocko <mhocko@suse.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
|