Skip to content

Commit

Permalink
mm/page_alloc.c: rename free_pages_check_bad() to check_free_page_bad()
Browse files Browse the repository at this point in the history
free_pages_check_bad() is the counterpart of check_new_page_bad().  Rename
it to use the same naming convention.

Signed-off-by: Wei Yang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Cc: Anshuman Khandual <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Michal Hocko <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
RichardWeiYang authored and torvalds committed Jun 4, 2020
1 parent 82a3241 commit 0d0c48a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,7 @@ static inline bool page_expected_state(struct page *page,
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;

Expand All @@ -1095,7 +1095,7 @@ static inline int free_pages_check(struct page *page)
return 0;

/* Something has gone sideways, find it */
free_pages_check_bad(page);
check_free_page_bad(page);
return 1;
}

Expand Down

0 comments on commit 0d0c48a

Please sign in to comment.