mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
mm: remove unused totalram_pages_inc() and totalram_pages_dec()
totalram_pages_inc() and totalram_pages_dec() have had no callers since commit7fbc5e2612("memblock: extract page freeing from free_reserved_area() into a helper") and commit287b89773d("powerpc/pseries/cmm: Use adjust_managed_page_count() insted of totalram_pages_*"), respectively. Remove them. Drop the totalram_pages_inc() stub from tools mm.h too. Link: https://lore.kernel.org/20260901-mm-remove-unused-helpers-v2-2-f6474e169c23@columbia.edu Reviewed-by: Lorenzo Stoakes (ARM) <ljs@kernel.org> Reviewed-by: Mike Rapoport (Microsoft) <rppt@kernel.org> Signed-off-by: Tal Zussman <tz2294@columbia.edu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: David Hildenbrand (Arm) <david@kernel.org> Cc: Liam R. Howlett <liam@infradead.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org>
This commit is contained in:
parent
73c77f98e2
commit
54c4c04553
|
|
@ -57,16 +57,6 @@ static inline unsigned long totalram_pages(void)
|
|||
return (unsigned long)atomic_long_read(&_totalram_pages);
|
||||
}
|
||||
|
||||
static inline void totalram_pages_inc(void)
|
||||
{
|
||||
atomic_long_inc(&_totalram_pages);
|
||||
}
|
||||
|
||||
static inline void totalram_pages_dec(void)
|
||||
{
|
||||
atomic_long_dec(&_totalram_pages);
|
||||
}
|
||||
|
||||
static inline void totalram_pages_add(long count)
|
||||
{
|
||||
atomic_long_add(count, &_totalram_pages);
|
||||
|
|
|
|||
|
|
@ -33,10 +33,6 @@ static inline phys_addr_t virt_to_phys(volatile void *address)
|
|||
return (phys_addr_t)address;
|
||||
}
|
||||
|
||||
static inline void totalram_pages_inc(void)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void totalram_pages_add(long count)
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user