Commit 0d0c48a2 authored by Wei Yang's avatar Wei Yang Committed by Linus Torvalds

mm/page_alloc.c: rename free_pages_check_bad() to check_free_page_bad()

free_pages_check_bad() is the counterpart of check_new_page_bad().  Rename
it to use the same naming convention.
Signed-off-by: default avatarWei Yang <richard.weiyang@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Michal Hocko <mhocko@suse.com>
Link: http://lkml.kernel.org/r/20200411220357.9636-4-richard.weiyang@gmail.comSigned-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 82a3241a
...@@ -1070,7 +1070,7 @@ static inline bool page_expected_state(struct page *page, ...@@ -1070,7 +1070,7 @@ static inline bool page_expected_state(struct page *page,
return true; return true;
} }
static void free_pages_check_bad(struct page *page) static void check_free_page_bad(struct page *page)
{ {
const char *bad_reason = NULL; const char *bad_reason = NULL;
...@@ -1095,7 +1095,7 @@ static inline int free_pages_check(struct page *page) ...@@ -1095,7 +1095,7 @@ static inline int free_pages_check(struct page *page)
return 0; return 0;
/* Something has gone sideways, find it */ /* Something has gone sideways, find it */
free_pages_check_bad(page); check_free_page_bad(page);
return 1; return 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment