Commit 902d2e8ae0de29f483840ba1134af27343b9564d
Committed by
Linus Torvalds
1 parent
985737cf2e
Exists in
master
and in
7 other branches
vmscan: kill unused lru functions
Several LRU manupuration function are not used now. So they can be removed. Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Acked-by: Rik van Riel <riel@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 0 additions and 48 deletions Side-by-side Diff
include/linux/mm_inline.h
... | ... | @@ -38,54 +38,6 @@ |
38 | 38 | } |
39 | 39 | |
40 | 40 | static inline void |
41 | -add_page_to_inactive_anon_list(struct zone *zone, struct page *page) | |
42 | -{ | |
43 | - add_page_to_lru_list(zone, page, LRU_INACTIVE_ANON); | |
44 | -} | |
45 | - | |
46 | -static inline void | |
47 | -add_page_to_active_anon_list(struct zone *zone, struct page *page) | |
48 | -{ | |
49 | - add_page_to_lru_list(zone, page, LRU_ACTIVE_ANON); | |
50 | -} | |
51 | - | |
52 | -static inline void | |
53 | -add_page_to_inactive_file_list(struct zone *zone, struct page *page) | |
54 | -{ | |
55 | - add_page_to_lru_list(zone, page, LRU_INACTIVE_FILE); | |
56 | -} | |
57 | - | |
58 | -static inline void | |
59 | -add_page_to_active_file_list(struct zone *zone, struct page *page) | |
60 | -{ | |
61 | - add_page_to_lru_list(zone, page, LRU_ACTIVE_FILE); | |
62 | -} | |
63 | - | |
64 | -static inline void | |
65 | -del_page_from_inactive_anon_list(struct zone *zone, struct page *page) | |
66 | -{ | |
67 | - del_page_from_lru_list(zone, page, LRU_INACTIVE_ANON); | |
68 | -} | |
69 | - | |
70 | -static inline void | |
71 | -del_page_from_active_anon_list(struct zone *zone, struct page *page) | |
72 | -{ | |
73 | - del_page_from_lru_list(zone, page, LRU_ACTIVE_ANON); | |
74 | -} | |
75 | - | |
76 | -static inline void | |
77 | -del_page_from_inactive_file_list(struct zone *zone, struct page *page) | |
78 | -{ | |
79 | - del_page_from_lru_list(zone, page, LRU_INACTIVE_FILE); | |
80 | -} | |
81 | - | |
82 | -static inline void | |
83 | -del_page_from_active_file_list(struct zone *zone, struct page *page) | |
84 | -{ | |
85 | - del_page_from_lru_list(zone, page, LRU_INACTIVE_FILE); | |
86 | -} | |
87 | - | |
88 | -static inline void | |
89 | 41 | del_page_from_lru(struct zone *zone, struct page *page) |
90 | 42 | { |
91 | 43 | enum lru_list l = LRU_BASE; |