linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: remove dead code totalram_pages_set()
@ 2019-12-17  6:44 Wei Yang
  2019-12-17 11:01 ` David Hildenbrand
  2019-12-17 12:48 ` Qian Cai
  0 siblings, 2 replies; 6+ messages in thread
From: Wei Yang @ 2019-12-17  6:44 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm, linux-kernel, Wei Yang

No one use totalram_pages_set(), just remote it.

Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
---
 include/linux/mm.h | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/include/linux/mm.h b/include/linux/mm.h
index 74232b28949b..4cf023c4c6b3 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -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;
 
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-12-18  1:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-17  6:44 [PATCH] mm: remove dead code totalram_pages_set() Wei Yang
2019-12-17 11:01 ` David Hildenbrand
2019-12-18  0:48   ` Wei Yang
2019-12-17 12:48 ` Qian Cai
2019-12-18  0:50   ` Wei Yang
2019-12-18  1:04     ` Qian Cai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).