diff options
author | Baruch Siach <baruch@tkos.co.il> | 2019-05-14 18:40:53 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-05-14 22:52:47 -0400 |
commit | 136ac591f047fc356072343eb85687f7c6ea191d (patch) | |
tree | 977e45cdad2ae14471dad57dbd8f3b8a095a7fc1 | |
parent | 987717e5e016a0dd3011d3bb16546672713f94e2 (diff) |
mm: update references to page _refcount
Commit 0139aa7b7fa ("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: 0139aa7b7fa ("mm: rename _count, field of the struct page, to _refcount")
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | mm/debug.c | 2 | ||||
-rw-r--r-- | mm/page_alloc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mm/debug.c b/mm/debug.c index eee9c221280c..8345bb6e4769 100644 --- a/mm/debug.c +++ b/mm/debug.c | |||
@@ -67,7 +67,7 @@ void __dump_page(struct page *page, const char *reason) | |||
67 | */ | 67 | */ |
68 | mapcount = PageSlab(page) ? 0 : page_mapcount(page); | 68 | mapcount = PageSlab(page) ? 0 : page_mapcount(page); |
69 | 69 | ||
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", |
71 | page, page_ref_count(page), mapcount, | 71 | page, page_ref_count(page), mapcount, |
72 | page->mapping, page_to_pgoff(page)); | 72 | page->mapping, page_to_pgoff(page)); |
73 | if (PageCompound(page)) | 73 | if (PageCompound(page)) |
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index f2f3fb4921d1..4b2d5f50431d 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -1986,7 +1986,7 @@ static void check_new_page_bad(struct page *page) | |||
1986 | if (unlikely(page->mapping != NULL)) | 1986 | if (unlikely(page->mapping != NULL)) |
1987 | bad_reason = "non-NULL mapping"; | 1987 | bad_reason = "non-NULL mapping"; |
1988 | if (unlikely(page_ref_count(page) != 0)) | 1988 | if (unlikely(page_ref_count(page) != 0)) |
1989 | bad_reason = "nonzero _count"; | 1989 | bad_reason = "nonzero _refcount"; |
1990 | if (unlikely(page->flags & __PG_HWPOISON)) { | 1990 | if (unlikely(page->flags & __PG_HWPOISON)) { |
1991 | bad_reason = "HWPoisoned (hardware-corrupted)"; | 1991 | bad_reason = "HWPoisoned (hardware-corrupted)"; |
1992 | bad_flags = __PG_HWPOISON; | 1992 | bad_flags = __PG_HWPOISON; |