diff options
Diffstat (limited to 'drivers/xen/tmem.c')
| -rw-r--r-- | drivers/xen/tmem.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/xen/tmem.c b/drivers/xen/tmem.c index dcb79521e6c8..89f264c67420 100644 --- a/drivers/xen/tmem.c +++ b/drivers/xen/tmem.c | |||
| @@ -269,7 +269,7 @@ static inline struct tmem_oid oswiz(unsigned type, u32 ind) | |||
| 269 | } | 269 | } |
| 270 | 270 | ||
| 271 | /* returns 0 if the page was successfully put into frontswap, -1 if not */ | 271 | /* returns 0 if the page was successfully put into frontswap, -1 if not */ |
| 272 | static int tmem_frontswap_put_page(unsigned type, pgoff_t offset, | 272 | static int tmem_frontswap_store(unsigned type, pgoff_t offset, |
| 273 | struct page *page) | 273 | struct page *page) |
| 274 | { | 274 | { |
| 275 | u64 ind64 = (u64)offset; | 275 | u64 ind64 = (u64)offset; |
| @@ -295,7 +295,7 @@ static int tmem_frontswap_put_page(unsigned type, pgoff_t offset, | |||
| 295 | * returns 0 if the page was successfully gotten from frontswap, -1 if | 295 | * returns 0 if the page was successfully gotten from frontswap, -1 if |
| 296 | * was not present (should never happen!) | 296 | * was not present (should never happen!) |
| 297 | */ | 297 | */ |
| 298 | static int tmem_frontswap_get_page(unsigned type, pgoff_t offset, | 298 | static int tmem_frontswap_load(unsigned type, pgoff_t offset, |
| 299 | struct page *page) | 299 | struct page *page) |
| 300 | { | 300 | { |
| 301 | u64 ind64 = (u64)offset; | 301 | u64 ind64 = (u64)offset; |
| @@ -362,8 +362,8 @@ static int __init no_frontswap(char *s) | |||
| 362 | __setup("nofrontswap", no_frontswap); | 362 | __setup("nofrontswap", no_frontswap); |
| 363 | 363 | ||
| 364 | static struct frontswap_ops __initdata tmem_frontswap_ops = { | 364 | static struct frontswap_ops __initdata tmem_frontswap_ops = { |
| 365 | .put_page = tmem_frontswap_put_page, | 365 | .store = tmem_frontswap_store, |
| 366 | .get_page = tmem_frontswap_get_page, | 366 | .load = tmem_frontswap_load, |
| 367 | .invalidate_page = tmem_frontswap_flush_page, | 367 | .invalidate_page = tmem_frontswap_flush_page, |
| 368 | .invalidate_area = tmem_frontswap_flush_area, | 368 | .invalidate_area = tmem_frontswap_flush_area, |
| 369 | .init = tmem_frontswap_init | 369 | .init = tmem_frontswap_init |
