diff options
| author | Baolin Wang <[email protected]> | 2023-01-10 21:36:18 +0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-02-02 22:32:53 -0800 |
| commit | c6835e8d86bcd8313347e097da140057772307c0 (patch) | |
| tree | ad56013cfb5f13f4b226900ebe351442b1ac6c7d /tools/perf/scripts | |
| parent | baabcfc93d3b5b14c52eb5c18d38627c32d2d82b (diff) | |
mm: compaction: remove redundant VM_BUG_ON() in compact_zone()
Patch series "Some small improvements for compaction".
When I did some compaction testing, I found some small room for
improvement as well as some code cleanups.
This patch (of 5):
The compaction_suitable() will never return values other than
COMPACT_SUCCESS, COMPACT_SKIPPED and COMPACT_CONTINUE, so after validation
of COMPACT_SUCCESS and COMPACT_SKIPPED, we will never hit other unexpected
case. Thus remove the redundant VM_BUG_ON() validation for the return
values of compaction_suitable().
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/740a2396d9b98154dba76e326cba5e798b640ead.1673342761.git.baolin.wang@linux.alibaba.com
Signed-off-by: Baolin Wang <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions