aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/swap.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/swap.h')
-rw-r--r--include/linux/swap.h9
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
360extern void 360extern void
361mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent, bool swapout); 361mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent, bool swapout);
362extern int mem_cgroup_count_swap_user(swp_entry_t ent, struct page **pagep);
363#else 362#else
364static inline void 363static inline void
365mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent, bool swapout) 364mem_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
474static inline int
475mem_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 */