diff options
author | KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> | 2008-10-18 23:26:54 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-20 11:52:31 -0400 |
commit | 902d2e8ae0de29f483840ba1134af27343b9564d (patch) | |
tree | 2f14626a70b5d7fbae9db33dfb155346b154e3f7 /include/linux/mm_inline.h | |
parent | 985737cf2ea096ea946aed82c7484d40defc71a8 (diff) |
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>
Diffstat (limited to 'include/linux/mm_inline.h')
-rw-r--r-- | include/linux/mm_inline.h | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/include/linux/mm_inline.h b/include/linux/mm_inline.h index 67d7697fd019..c948350c378e 100644 --- a/include/linux/mm_inline.h +++ b/include/linux/mm_inline.h | |||
@@ -38,54 +38,6 @@ del_page_from_lru_list(struct zone *zone, struct page *page, enum lru_list l) | |||
38 | } | 38 | } |
39 | 39 | ||
40 | static inline void | 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 | del_page_from_lru(struct zone *zone, struct page *page) | 41 | del_page_from_lru(struct zone *zone, struct page *page) |
90 | { | 42 | { |
91 | enum lru_list l = LRU_BASE; | 43 | enum lru_list l = LRU_BASE; |