diff options
author | Hugh Dickins <hughd@google.com> | 2012-01-12 20:20:01 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-12 23:13:10 -0500 |
commit | 4111304dab198c687bc60f2e235a9f7ee92c47c8 (patch) | |
tree | c98fbae214f73f8475bcdc54c8116dea82cd7d14 /include/linux/mm_inline.h | |
parent | 4d06f382c733f99ec67df006255e87525ac1efd3 (diff) |
mm: enum lru_list lru
Mostly we use "enum lru_list lru": change those few "l"s to "lru"s.
Signed-off-by: Hugh Dickins <hughd@google.com>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.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 | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/include/linux/mm_inline.h b/include/linux/mm_inline.h index 4e3478e71926..8f84d2e53d0f 100644 --- a/include/linux/mm_inline.h +++ b/include/linux/mm_inline.h | |||
@@ -22,21 +22,21 @@ static inline int page_is_file_cache(struct page *page) | |||
22 | } | 22 | } |
23 | 23 | ||
24 | static inline void | 24 | static inline void |
25 | add_page_to_lru_list(struct zone *zone, struct page *page, enum lru_list l) | 25 | add_page_to_lru_list(struct zone *zone, struct page *page, enum lru_list lru) |
26 | { | 26 | { |
27 | struct lruvec *lruvec; | 27 | struct lruvec *lruvec; |
28 | 28 | ||
29 | lruvec = mem_cgroup_lru_add_list(zone, page, l); | 29 | lruvec = mem_cgroup_lru_add_list(zone, page, lru); |
30 | list_add(&page->lru, &lruvec->lists[l]); | 30 | list_add(&page->lru, &lruvec->lists[lru]); |
31 | __mod_zone_page_state(zone, NR_LRU_BASE + l, hpage_nr_pages(page)); | 31 | __mod_zone_page_state(zone, NR_LRU_BASE + lru, hpage_nr_pages(page)); |
32 | } | 32 | } |
33 | 33 | ||
34 | static inline void | 34 | static inline void |
35 | del_page_from_lru_list(struct zone *zone, struct page *page, enum lru_list l) | 35 | del_page_from_lru_list(struct zone *zone, struct page *page, enum lru_list lru) |
36 | { | 36 | { |
37 | mem_cgroup_lru_del_list(page, l); | 37 | mem_cgroup_lru_del_list(page, lru); |
38 | list_del(&page->lru); | 38 | list_del(&page->lru); |
39 | __mod_zone_page_state(zone, NR_LRU_BASE + l, -hpage_nr_pages(page)); | 39 | __mod_zone_page_state(zone, NR_LRU_BASE + lru, -hpage_nr_pages(page)); |
40 | } | 40 | } |
41 | 41 | ||
42 | /** | 42 | /** |
@@ -57,21 +57,21 @@ static inline enum lru_list page_lru_base_type(struct page *page) | |||
57 | static inline void | 57 | static inline void |
58 | del_page_from_lru(struct zone *zone, struct page *page) | 58 | del_page_from_lru(struct zone *zone, struct page *page) |
59 | { | 59 | { |
60 | enum lru_list l; | 60 | enum lru_list lru; |
61 | 61 | ||
62 | if (PageUnevictable(page)) { | 62 | if (PageUnevictable(page)) { |
63 | __ClearPageUnevictable(page); | 63 | __ClearPageUnevictable(page); |
64 | l = LRU_UNEVICTABLE; | 64 | lru = LRU_UNEVICTABLE; |
65 | } else { | 65 | } else { |
66 | l = page_lru_base_type(page); | 66 | lru = page_lru_base_type(page); |
67 | if (PageActive(page)) { | 67 | if (PageActive(page)) { |
68 | __ClearPageActive(page); | 68 | __ClearPageActive(page); |
69 | l += LRU_ACTIVE; | 69 | lru += LRU_ACTIVE; |
70 | } | 70 | } |
71 | } | 71 | } |
72 | mem_cgroup_lru_del_list(page, l); | 72 | mem_cgroup_lru_del_list(page, lru); |
73 | list_del(&page->lru); | 73 | list_del(&page->lru); |
74 | __mod_zone_page_state(zone, NR_LRU_BASE + l, -hpage_nr_pages(page)); | 74 | __mod_zone_page_state(zone, NR_LRU_BASE + lru, -hpage_nr_pages(page)); |
75 | } | 75 | } |
76 | 76 | ||
77 | /** | 77 | /** |