]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
swap: swapin_nr_pages() can be static
authorFengguang Wu <fengguang.wu@intel.com>
Wed, 19 Jun 2013 00:05:51 +0000 (10:05 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:12:55 +0000 (17:12 +1000)
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 e36a12d8ea2a0b7a1ac60de0cb51e5bd20d9795a..9a22fc65ffa411f0c4ad5dedd2256a40db3dc411 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;