diff options
| author | ZhangPeng <[email protected]> | 2023-08-04 01:25:59 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-08-21 20:37:45 +0000 |
| commit | 6c1aa2d37f7677609c74a4ff120f99a07b90ba08 (patch) | |
| tree | 2641bcf2b202060b75ba5cabf99dfd71194c42a8 /mm/hugetlb.c | |
| parent | mm/mmap.c: use helper macro K() (diff) | |
| download | kernel-6c1aa2d37f7677609c74a4ff120f99a07b90ba08.tar.gz kernel-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/[email protected]
Signed-off-by: ZhangPeng <[email protected]>
Reviewed-by: Matthew Wilcox (Oracle) <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Cc: Kefeng Wang <[email protected]>
Cc: Nanyong Sun <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
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. */ |
