diff --git a/[refs] b/[refs] index 2241cc460134..a3d11c6a1eb9 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ac47b003d03c2a4f28aef1d505b66d24ad191c4f +refs/heads/master: 60371d971a3d01afd102f0bbf2681f32ecc31d78 diff --git a/trunk/include/linux/swap.h b/trunk/include/linux/swap.h index c38bd157695b..c0d23ac710d5 100644 --- a/trunk/include/linux/swap.h +++ b/trunk/include/linux/swap.h @@ -371,6 +371,11 @@ static inline struct page *lookup_swap_cache(swp_entry_t swp) return NULL; } +static inline int add_to_swap(struct page *page) +{ + return 0; +} + static inline int add_to_swap_cache(struct page *page, swp_entry_t entry, gfp_t gfp_mask) { diff --git a/trunk/mm/vmscan.c b/trunk/mm/vmscan.c index cc7401571cba..f350523a8eee 100644 --- a/trunk/mm/vmscan.c +++ b/trunk/mm/vmscan.c @@ -617,7 +617,6 @@ static unsigned long shrink_page_list(struct list_head *page_list, referenced && page_mapping_inuse(page)) goto activate_locked; -#ifdef CONFIG_SWAP /* * Anonymous process memory has backing store? * Try to allocate it some swap space here. @@ -629,7 +628,6 @@ static unsigned long shrink_page_list(struct list_head *page_list, goto activate_locked; may_enter_fs = 1; } -#endif /* CONFIG_SWAP */ mapping = page_mapping(page);