Skip to content

Commit 136ac59

Browse files
baruchsiachtorvalds
authored andcommitted
mm: update references to page _refcount
Commit 0139aa7 ("mm: rename _count, field of the struct page, to _refcount") left out a couple of references to the old field name. Fix that. Link: http://lkml.kernel.org/r/cedf87b02eb8a6b3eac57e8e91da53fb15c3c44c.1556537475.git.baruch@tkos.co.il Fixes: 0139aa7 ("mm: rename _count, field of the struct page, to _refcount") Signed-off-by: Baruch Siach <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Cc: Joonsoo Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 987717e commit 136ac59

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mm/debug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void __dump_page(struct page *page, const char *reason)
6767
*/
6868
mapcount = PageSlab(page) ? 0 : page_mapcount(page);
6969

70-
pr_warn("page:%px count:%d mapcount:%d mapping:%px index:%#lx",
70+
pr_warn("page:%px refcount:%d mapcount:%d mapping:%px index:%#lx",
7171
page, page_ref_count(page), mapcount,
7272
page->mapping, page_to_pgoff(page));
7373
if (PageCompound(page))

mm/page_alloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1986,7 +1986,7 @@ static void check_new_page_bad(struct page *page)
19861986
if (unlikely(page->mapping != NULL))
19871987
bad_reason = "non-NULL mapping";
19881988
if (unlikely(page_ref_count(page) != 0))
1989-
bad_reason = "nonzero _count";
1989+
bad_reason = "nonzero _refcount";
19901990
if (unlikely(page->flags & __PG_HWPOISON)) {
19911991
bad_reason = "HWPoisoned (hardware-corrupted)";
19921992
bad_flags = __PG_HWPOISON;

0 commit comments

Comments
 (0)