diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-05-15 11:32:15 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-05-15 11:34:08 -0400 |
commit | 165c8aed5bbc6bdddbccae0ba9db451732558ff9 (patch) | |
tree | a039053eb4bc7cd05096e307368b50426b412659 /include | |
parent | 839a1f79ed0ce026e6d1106f202eaaae929b4200 (diff) |
frontswap: s/put_page/store/g s/get_page/load
Sounds so much more natural.
Suggested-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/frontswap.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/linux/frontswap.h b/include/linux/frontswap.h index 68ff7af5c5fb..0e4e2eec5c1d 100644 --- a/include/linux/frontswap.h +++ b/include/linux/frontswap.h | |||
@@ -7,8 +7,8 @@ | |||
7 | 7 | ||
8 | struct frontswap_ops { | 8 | struct frontswap_ops { |
9 | void (*init)(unsigned); | 9 | void (*init)(unsigned); |
10 | int (*put_page)(unsigned, pgoff_t, struct page *); | 10 | int (*store)(unsigned, pgoff_t, struct page *); |
11 | int (*get_page)(unsigned, pgoff_t, struct page *); | 11 | int (*load)(unsigned, pgoff_t, struct page *); |
12 | void (*invalidate_page)(unsigned, pgoff_t); | 12 | void (*invalidate_page)(unsigned, pgoff_t); |
13 | void (*invalidate_area)(unsigned); | 13 | void (*invalidate_area)(unsigned); |
14 | }; | 14 | }; |
@@ -21,8 +21,8 @@ extern unsigned long frontswap_curr_pages(void); | |||
21 | extern void frontswap_writethrough(bool); | 21 | extern void frontswap_writethrough(bool); |
22 | 22 | ||
23 | extern void __frontswap_init(unsigned type); | 23 | extern void __frontswap_init(unsigned type); |
24 | extern int __frontswap_put_page(struct page *page); | 24 | extern int __frontswap_store(struct page *page); |
25 | extern int __frontswap_get_page(struct page *page); | 25 | extern int __frontswap_load(struct page *page); |
26 | extern void __frontswap_invalidate_page(unsigned, pgoff_t); | 26 | extern void __frontswap_invalidate_page(unsigned, pgoff_t); |
27 | extern void __frontswap_invalidate_area(unsigned); | 27 | extern void __frontswap_invalidate_area(unsigned); |
28 | 28 | ||
@@ -88,21 +88,21 @@ static inline unsigned long *frontswap_map_get(struct swap_info_struct *p) | |||
88 | } | 88 | } |
89 | #endif | 89 | #endif |
90 | 90 | ||
91 | static inline int frontswap_put_page(struct page *page) | 91 | static inline int frontswap_store(struct page *page) |
92 | { | 92 | { |
93 | int ret = -1; | 93 | int ret = -1; |
94 | 94 | ||
95 | if (frontswap_enabled) | 95 | if (frontswap_enabled) |
96 | ret = __frontswap_put_page(page); | 96 | ret = __frontswap_store(page); |
97 | return ret; | 97 | return ret; |
98 | } | 98 | } |
99 | 99 | ||
100 | static inline int frontswap_get_page(struct page *page) | 100 | static inline int frontswap_load(struct page *page) |
101 | { | 101 | { |
102 | int ret = -1; | 102 | int ret = -1; |
103 | 103 | ||
104 | if (frontswap_enabled) | 104 | if (frontswap_enabled) |
105 | ret = __frontswap_get_page(page); | 105 | ret = __frontswap_load(page); |
106 | return ret; | 106 | return ret; |
107 | } | 107 | } |
108 | 108 | ||