diff options
Diffstat (limited to 'include/linux/swap.h')
-rw-r--r-- | include/linux/swap.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index 34e8b60ab973..7067eca501e2 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h | |||
@@ -437,16 +437,6 @@ extern int reuse_swap_page(struct page *); | |||
437 | extern int try_to_free_swap(struct page *); | 437 | extern int try_to_free_swap(struct page *); |
438 | struct backing_dev_info; | 438 | struct backing_dev_info; |
439 | 439 | ||
440 | #ifdef CONFIG_MEMCG | ||
441 | extern void | ||
442 | mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent, bool swapout); | ||
443 | #else | ||
444 | static inline void | ||
445 | mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent, bool swapout) | ||
446 | { | ||
447 | } | ||
448 | #endif | ||
449 | |||
450 | #else /* CONFIG_SWAP */ | 440 | #else /* CONFIG_SWAP */ |
451 | 441 | ||
452 | #define swap_address_space(entry) (NULL) | 442 | #define swap_address_space(entry) (NULL) |
@@ -547,11 +537,6 @@ static inline swp_entry_t get_swap_page(void) | |||
547 | return entry; | 537 | return entry; |
548 | } | 538 | } |
549 | 539 | ||
550 | static inline void | ||
551 | mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent) | ||
552 | { | ||
553 | } | ||
554 | |||
555 | #endif /* CONFIG_SWAP */ | 540 | #endif /* CONFIG_SWAP */ |
556 | #endif /* __KERNEL__*/ | 541 | #endif /* __KERNEL__*/ |
557 | #endif /* _LINUX_SWAP_H */ | 542 | #endif /* _LINUX_SWAP_H */ |