Commit aca8bf323edd31ad462dc98c107c23a5c6022ca2

Authored by Minchan Kim
Committed by Linus Torvalds
1 parent 8192da6a88

mm: remove file argument from swap_readpage()

The file argument resulted from address_space's readpage long time ago.

We don't use it any more.  Let's remove unnecessary argement.

Signed-off-by: Minchan Kim <minchan.kim@gmail.com>
Acked-by: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Reviewed-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 3 changed files with 3 additions and 3 deletions Side-by-side Diff

include/linux/swap.h
... ... @@ -256,7 +256,7 @@
256 256  
257 257 #ifdef CONFIG_SWAP
258 258 /* linux/mm/page_io.c */
259   -extern int swap_readpage(struct file *, struct page *);
  259 +extern int swap_readpage(struct page *);
260 260 extern int swap_writepage(struct page *page, struct writeback_control *wbc);
261 261 extern void end_swap_bio_read(struct bio *bio, int err);
262 262  
... ... @@ -120,7 +120,7 @@
120 120 return ret;
121 121 }
122 122  
123   -int swap_readpage(struct file *file, struct page *page)
  123 +int swap_readpage(struct page *page)
124 124 {
125 125 struct bio *bio;
126 126 int ret = 0;
... ... @@ -313,7 +313,7 @@
313 313 * Initiate read into locked page and return.
314 314 */
315 315 lru_cache_add_anon(new_page);
316   - swap_readpage(NULL, new_page);
  316 + swap_readpage(new_page);
317 317 return new_page;
318 318 }
319 319 ClearPageSwapBacked(new_page);