diff options
| author | Wei Yang <richard.weiyang@gmail.com> | 2020-06-03 15:58:39 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-06-03 20:09:44 -0700 |
| commit | 58b7f1194fe1e188a1687e45c3475a98906aae4b (patch) | |
| tree | f1d26608c2d363659fd99244a38f6755b616eec7 /tools/perf/scripts/python | |
| parent | mm/page_alloc.c: rename free_pages_check() to check_free_page() (diff) | |
| download | linux-58b7f1194fe1e188a1687e45c3475a98906aae4b.tar.gz linux-58b7f1194fe1e188a1687e45c3475a98906aae4b.zip | |
mm/page_alloc.c: extract check_[new|free]_page_bad() common part to page_bad_reason()
We share similar code in check_[new|free]_page_bad() to get the page's bad
reason.
Let's extract it and reduce code duplication.
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Michal Hocko <mhocko@suse.com>
Link: http://lkml.kernel.org/r/20200411220357.9636-6-richard.weiyang@gmail.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
