From 112c67595ae3f3730cb40a9af37dab9b4bc2169c Mon Sep 17 00:00:00 2001 From: Fengguang Wu Date: Wed, 19 Jun 2013 10:05:51 +1000 Subject: [PATCH] swap: swapin_nr_pages() can be static Signed-off-by: Fengguang Wu Cc: Shaohua Li Cc: Johannes Weiner Signed-off-by: Andrew Morton --- mm/swap_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/swap_state.c b/mm/swap_state.c index e36a12d8ea2a..9a22fc65ffa4 100644 --- a/mm/swap_state.c +++ b/mm/swap_state.c @@ -394,7 +394,7 @@ struct page *read_swap_cache_async(swp_entry_t entry, gfp_t gfp_mask, return found_page; } -unsigned long swapin_nr_pages(unsigned long offset) +static unsigned long swapin_nr_pages(unsigned long offset) { static unsigned long prev_offset; unsigned int pages, max_pages, last_ra; -- 2.39.5