diff options
Diffstat (limited to 'include/linux/swap.h')
-rw-r--r-- | include/linux/swap.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index 0cedf31af0b0..c88b36665f79 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h | |||
@@ -319,10 +319,11 @@ static inline void disable_swap_token(void) | |||
319 | } | 319 | } |
320 | 320 | ||
321 | #ifdef CONFIG_CGROUP_MEM_RES_CTLR | 321 | #ifdef CONFIG_CGROUP_MEM_RES_CTLR |
322 | extern void mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent); | 322 | extern void |
323 | mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent, bool swapout); | ||
323 | #else | 324 | #else |
324 | static inline void | 325 | static inline void |
325 | mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent) | 326 | mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent, bool swapout) |
326 | { | 327 | { |
327 | } | 328 | } |
328 | #endif | 329 | #endif |
@@ -423,12 +424,6 @@ static inline swp_entry_t get_swap_page(void) | |||
423 | #define has_swap_token(x) 0 | 424 | #define has_swap_token(x) 0 |
424 | #define disable_swap_token() do { } while(0) | 425 | #define disable_swap_token() do { } while(0) |
425 | 426 | ||
426 | static inline int mem_cgroup_cache_charge_swapin(struct page *page, | ||
427 | struct mm_struct *mm, gfp_t mask, bool locked) | ||
428 | { | ||
429 | return 0; | ||
430 | } | ||
431 | |||
432 | static inline void | 427 | static inline void |
433 | mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent) | 428 | mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent) |
434 | { | 429 | { |