summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/frontswap.h16
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 @@
struct frontswap_ops {
void (*init)(unsigned);
- int (*put_page)(unsigned, pgoff_t, struct page *);
- int (*get_page)(unsigned, pgoff_t, struct page *);
+ int (*store)(unsigned, pgoff_t, struct page *);
+ int (*load)(unsigned, pgoff_t, struct page *);
void (*invalidate_page)(unsigned, pgoff_t);
void (*invalidate_area)(unsigned);
};
@@ -21,8 +21,8 @@ extern unsigned long frontswap_curr_pages(void);
extern void frontswap_writethrough(bool);
extern void __frontswap_init(unsigned type);
-extern int __frontswap_put_page(struct page *page);
-extern int __frontswap_get_page(struct page *page);
+extern int __frontswap_store(struct page *page);
+extern int __frontswap_load(struct page *page);
extern void __frontswap_invalidate_page(unsigned, pgoff_t);
extern void __frontswap_invalidate_area(unsigned);
@@ -88,21 +88,21 @@ static inline unsigned long *frontswap_map_get(struct swap_info_struct *p)
}
#endif
-static inline int frontswap_put_page(struct page *page)
+static inline int frontswap_store(struct page *page)
{
int ret = -1;
if (frontswap_enabled)
- ret = __frontswap_put_page(page);
+ ret = __frontswap_store(page);
return ret;
}
-static inline int frontswap_get_page(struct page *page)
+static inline int frontswap_load(struct page *page)
{
int ret = -1;
if (frontswap_enabled)
- ret = __frontswap_get_page(page);
+ ret = __frontswap_load(page);
return ret;
}