mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 08:03:01 +09:00
mm: remove arguments of show_mem()
All callers of show_mem() pass 0 and NULL, so we can remove the two arguments by directly calling __show_mem(0, NULL, MAX_NR_ZONES - 1) in show_mem(). Link: https://lkml.kernel.org/r/20230630062253.189440-1-wangkefeng.wang@huawei.com Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Cc: Christophe Leroy <christophe.leroy@csgroup.eu> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Matthew Wilcox <willy@infradead.org> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
626e98cb03
commit
527ed4f7d9
@@ -3068,9 +3068,9 @@ extern void mem_init(void);
|
||||
extern void __init mmap_init(void);
|
||||
|
||||
extern void __show_mem(unsigned int flags, nodemask_t *nodemask, int max_zone_idx);
|
||||
static inline void show_mem(unsigned int flags, nodemask_t *nodemask)
|
||||
static inline void show_mem(void)
|
||||
{
|
||||
__show_mem(flags, nodemask, MAX_NR_ZONES - 1);
|
||||
__show_mem(0, NULL, MAX_NR_ZONES - 1);
|
||||
}
|
||||
extern long si_mem_available(void);
|
||||
extern void si_meminfo(struct sysinfo * val);
|
||||
|
||||
Reference in New Issue
Block a user