diff options
author | ZhangPeng <zhangpeng362@huawei.com> | 2023-08-04 09:25:56 +0800 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-08-21 13:37:44 -0700 |
commit | b91742d84d29c39b643992b95560cfb7337eab18 (patch) | |
tree | 1f171e9a3f3a6dbeb5569b5f8cc370558bf98054 /mm | |
parent | 3cb8eaa4558e4d1cde9641e1cb0dcbbd74ae5723 (diff) | |
download | linux-starfive-b91742d84d29c39b643992b95560cfb7337eab18.tar.gz linux-starfive-b91742d84d29c39b643992b95560cfb7337eab18.tar.bz2 linux-starfive-b91742d84d29c39b643992b95560cfb7337eab18.zip |
mm/shmem.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-5-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/shmem.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index 235f2b2fd202..20daa207d8bf 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -3864,8 +3864,7 @@ static int shmem_show_options(struct seq_file *seq, struct dentry *root) struct mempolicy *mpol; if (sbinfo->max_blocks != shmem_default_max_blocks()) - seq_printf(seq, ",size=%luk", - sbinfo->max_blocks << (PAGE_SHIFT - 10)); + seq_printf(seq, ",size=%luk", K(sbinfo->max_blocks)); if (sbinfo->max_inodes != shmem_default_max_inodes()) seq_printf(seq, ",nr_inodes=%lu", sbinfo->max_inodes); if (sbinfo->mode != (0777 | S_ISVTX)) |