]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
swap: swapin_nr_pages() can be static
authorFengguang Wu <fengguang.wu@intel.com>
Tue, 5 Nov 2013 05:56:01 +0000 (16:56 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:56:01 +0000 (16:56 +1100)
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Cc: Shaohua Li <shli@kernel.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/swap_state.c

index ee2ff571e2397a92a829cb3c0592934ff4858a28..fdde6f9ea4c0ad20311f900a63e34a51766c06a7 100644 (file)
@@ -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;