diff options
author | 2023-08-04 09:25:59 +0800 | |
---|---|---|
committer | 2023-08-21 13:37:45 -0700 | |
commit | 6c1aa2d37f7677609c74a4ff120f99a07b90ba08 (patch) | |
tree | 2641bcf2b202060b75ba5cabf99dfd71194c42a8 /mm/hugetlb.c | |
parent | mm/mmap.c: use helper macro K() (diff) | |
download | linux-6c1aa2d37f7677609c74a4ff120f99a07b90ba08.tar.gz linux-6c1aa2d37f7677609c74a4ff120f99a07b90ba08.tar.bz2 linux-6c1aa2d37f7677609c74a4ff120f99a07b90ba08.zip |
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/hugetlb.c')
-rw-r--r-- | mm/hugetlb.c | 2 |
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. */ |