|
@@ -437,16 +437,6 @@ extern int reuse_swap_page(struct page *);
|
|
extern int try_to_free_swap(struct page *);
|
|
extern int try_to_free_swap(struct page *);
|
|
struct backing_dev_info;
|
|
struct backing_dev_info;
|
|
|
|
|
|
-#ifdef CONFIG_MEMCG
|
|
|
|
-extern void
|
|
|
|
-mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent, bool swapout);
|
|
|
|
-#else
|
|
|
|
-static inline void
|
|
|
|
-mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent, bool swapout)
|
|
|
|
-{
|
|
|
|
-}
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
#else /* CONFIG_SWAP */
|
|
#else /* CONFIG_SWAP */
|
|
|
|
|
|
#define swap_address_space(entry) (NULL)
|
|
#define swap_address_space(entry) (NULL)
|
|
@@ -547,11 +537,6 @@ static inline swp_entry_t get_swap_page(void)
|
|
return entry;
|
|
return entry;
|
|
}
|
|
}
|
|
|
|
|
|
-static inline void
|
|
|
|
-mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent)
|
|
|
|
-{
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
#endif /* CONFIG_SWAP */
|
|
#endif /* CONFIG_SWAP */
|
|
#endif /* __KERNEL__*/
|
|
#endif /* __KERNEL__*/
|
|
#endif /* _LINUX_SWAP_H */
|
|
#endif /* _LINUX_SWAP_H */
|