aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/swap.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/swap.h')
-rw-r--r--include/linux/swap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h
index c38bd157695b..c0d23ac710d5 100644
--- a/include/linux/swap.h
+++ b/include/linux/swap.h
@@ -371,6 +371,11 @@ static inline struct page *lookup_swap_cache(swp_entry_t swp)
371 return NULL; 371 return NULL;
372} 372}
373 373
374static inline int add_to_swap(struct page *page)
375{
376 return 0;
377}
378
374static inline int add_to_swap_cache(struct page *page, swp_entry_t entry, 379static inline int add_to_swap_cache(struct page *page, swp_entry_t entry,
375 gfp_t gfp_mask) 380 gfp_t gfp_mask)
376{ 381{