diff options
author | Vladimir Davydov <vdavydov@parallels.com> | 2015-02-11 18:24:59 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-11 20:06:00 -0500 |
commit | 93aa7d95248d04b934eb8e89717c7b8d6400bf2b (patch) | |
tree | b4bc2efc551be937c8cbdc2544cc387be4dafc3c /include/linux | |
parent | 83363b917a2982dd509a5e2125e905b6873505a3 (diff) |
swap: remove unused mem_cgroup_uncharge_swapcache declaration
The body of this function was removed by commit 0a31bc97c80c ("mm:
memcontrol: rewrite uncharge API").
Signed-off-by: Vladimir Davydov <vdavydov@parallels.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
-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 */ |