mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-17 02:36:21 +00:00
mm/nommu.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-6-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>
This commit is contained in:
parent
b91742d84d
commit
d5a6474d3d
@ -1800,7 +1800,7 @@ static int __meminit init_user_reserve(void)
|
||||
{
|
||||
unsigned long free_kbytes;
|
||||
|
||||
free_kbytes = global_zone_page_state(NR_FREE_PAGES) << (PAGE_SHIFT - 10);
|
||||
free_kbytes = K(global_zone_page_state(NR_FREE_PAGES));
|
||||
|
||||
sysctl_user_reserve_kbytes = min(free_kbytes / 32, 1UL << 17);
|
||||
return 0;
|
||||
@ -1821,7 +1821,7 @@ static int __meminit init_admin_reserve(void)
|
||||
{
|
||||
unsigned long free_kbytes;
|
||||
|
||||
free_kbytes = global_zone_page_state(NR_FREE_PAGES) << (PAGE_SHIFT - 10);
|
||||
free_kbytes = K(global_zone_page_state(NR_FREE_PAGES));
|
||||
|
||||
sysctl_admin_reserve_kbytes = min(free_kbytes / 32, 1UL << 13);
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user