diff options
-rw-r--r-- | include/linux/swap.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index 8dc0ea7caf02..b1fd5c7925fe 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h | |||
@@ -305,6 +305,13 @@ static inline int mem_cgroup_swappiness(struct mem_cgroup *mem) | |||
305 | return vm_swappiness; | 305 | return vm_swappiness; |
306 | } | 306 | } |
307 | #endif | 307 | #endif |
308 | #ifdef CONFIG_CGROUP_MEM_RES_CTLR_SWAP | ||
309 | extern void mem_cgroup_uncharge_swap(swp_entry_t ent); | ||
310 | #else | ||
311 | static inline void mem_cgroup_uncharge_swap(swp_entry_t ent) | ||
312 | { | ||
313 | } | ||
314 | #endif | ||
308 | #ifdef CONFIG_SWAP | 315 | #ifdef CONFIG_SWAP |
309 | /* linux/mm/page_io.c */ | 316 | /* linux/mm/page_io.c */ |
310 | extern int swap_readpage(struct page *); | 317 | extern int swap_readpage(struct page *); |
@@ -375,13 +382,6 @@ mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent, bool swapout) | |||
375 | { | 382 | { |
376 | } | 383 | } |
377 | #endif | 384 | #endif |
378 | #ifdef CONFIG_CGROUP_MEM_RES_CTLR_SWAP | ||
379 | extern void mem_cgroup_uncharge_swap(swp_entry_t ent); | ||
380 | #else | ||
381 | static inline void mem_cgroup_uncharge_swap(swp_entry_t ent) | ||
382 | { | ||
383 | } | ||
384 | #endif | ||
385 | 385 | ||
386 | #else /* CONFIG_SWAP */ | 386 | #else /* CONFIG_SWAP */ |
387 | 387 | ||