diff options
Diffstat (limited to 'include/linux/swap.h')
-rw-r--r-- | include/linux/swap.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index 4ccca25d0f05..d30215578877 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h | |||
@@ -335,16 +335,8 @@ static inline void disable_swap_token(void) | |||
335 | } | 335 | } |
336 | 336 | ||
337 | #ifdef CONFIG_CGROUP_MEM_RES_CTLR | 337 | #ifdef CONFIG_CGROUP_MEM_RES_CTLR |
338 | extern int mem_cgroup_cache_charge_swapin(struct page *page, | ||
339 | struct mm_struct *mm, gfp_t mask, bool locked); | ||
340 | extern void mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent); | 338 | extern void mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent); |
341 | #else | 339 | #else |
342 | static inline | ||
343 | int mem_cgroup_cache_charge_swapin(struct page *page, | ||
344 | struct mm_struct *mm, gfp_t mask, bool locked) | ||
345 | { | ||
346 | return 0; | ||
347 | } | ||
348 | static inline void | 340 | static inline void |
349 | mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent) | 341 | mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent) |
350 | { | 342 | { |