summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorZhangPeng <zhangpeng362@huawei.com>2023-08-04 09:25:59 +0800
committerAndrew Morton <akpm@linux-foundation.org>2023-08-21 13:37:45 -0700
commit6c1aa2d37f7677609c74a4ff120f99a07b90ba08 (patch)
tree2641bcf2b202060b75ba5cabf99dfd71194c42a8 /mm
parentb1773e0ea30a46cf23238ff38d5ca4756c41ad2e (diff)
mm/hugetlb.c: use helper macro K()
Use helper macro K() to improve code readability. No functional modification involved. Link: https://lkml.kernel.org/r/20230804012559.2617515-8-zhangpeng362@huawei.com Signed-off-by: ZhangPeng <zhangpeng362@huawei.com> Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: David Hildenbrand <david@redhat.com> Cc: Kefeng Wang <wangkefeng.wang@huawei.com> Cc: Nanyong Sun <sunnanyong@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/hugetlb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 102f83bd3a9f..851457af0869 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -4748,7 +4748,7 @@ void hugetlb_show_meminfo_node(int nid)
void hugetlb_report_usage(struct seq_file *m, struct mm_struct *mm)
{
seq_printf(m, "HugetlbPages:\t%8lu kB\n",
- atomic_long_read(&mm->hugetlb_usage) << (PAGE_SHIFT - 10));
+ K(atomic_long_read(&mm->hugetlb_usage)));
}
/* Return the number pages of memory we physically have, in PAGE_SIZE units. */