]> git.baikalelectronics.ru Git - kernel.git/commitdiff
include/linux/mm.h: remove dead code totalram_pages_set()
authorWei Yang <richardw.yang@linux.intel.com>
Fri, 31 Jan 2020 06:15:13 +0000 (22:15 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 31 Jan 2020 18:30:39 +0000 (10:30 -0800)
totalram_pages_set() was introduced in commit eb366772d7bf ("mm: convert
totalram_pages and totalhigh_pages variables to atomic"), but no one
uses it.

Link: http://lkml.kernel.org/r/20191218005543.24146-1-richardw.yang@linux.intel.com
Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/mm.h

index ddfc217bc026e3cd6689fc631faff3590fb12dc6..73a044ed69811cd58b180d5aabf170d2249350b0 100644 (file)
@@ -70,11 +70,6 @@ static inline void totalram_pages_add(long count)
        atomic_long_add(count, &_totalram_pages);
 }
 
-static inline void totalram_pages_set(long val)
-{
-       atomic_long_set(&_totalram_pages, val);
-}
-
 extern void * high_memory;
 extern int page_cluster;