diff options
Diffstat (limited to 'include/linux/swap.h')
-rw-r--r-- | include/linux/swap.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index d965c4bfab3a..49c0fa9ef5cf 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h | |||
@@ -359,7 +359,6 @@ struct backing_dev_info; | |||
359 | #ifdef CONFIG_CGROUP_MEM_RES_CTLR | 359 | #ifdef CONFIG_CGROUP_MEM_RES_CTLR |
360 | extern void | 360 | extern void |
361 | mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent, bool swapout); | 361 | mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent, bool swapout); |
362 | extern int mem_cgroup_count_swap_user(swp_entry_t ent, struct page **pagep); | ||
363 | #else | 362 | #else |
364 | static inline void | 363 | static inline void |
365 | mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent, bool swapout) | 364 | mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent, bool swapout) |
@@ -470,14 +469,6 @@ mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent) | |||
470 | { | 469 | { |
471 | } | 470 | } |
472 | 471 | ||
473 | #ifdef CONFIG_CGROUP_MEM_RES_CTLR | ||
474 | static inline int | ||
475 | mem_cgroup_count_swap_user(swp_entry_t ent, struct page **pagep) | ||
476 | { | ||
477 | return 0; | ||
478 | } | ||
479 | #endif | ||
480 | |||
481 | #endif /* CONFIG_SWAP */ | 472 | #endif /* CONFIG_SWAP */ |
482 | #endif /* __KERNEL__*/ | 473 | #endif /* __KERNEL__*/ |
483 | #endif /* _LINUX_SWAP_H */ | 474 | #endif /* _LINUX_SWAP_H */ |