From 1c12e8ff4c6b008512d3f0518ddcdf2a4e7bf997 Mon Sep 17 00:00:00 2001 From: Souptick Joarder Date: Wed, 1 Apr 2020 21:04:50 -0700 Subject: [PATCH] mm/filemap.c: remove unused argument from shrink_readahead_size_eio() upstream commit id: 0f8e2db4ead59a79db4cd79d978f8a3cf85e870c The first argument of shrink_readahead_size_eio() is not used. Hence remove it from the function definition and from all the callers. Signed-off-by: Souptick Joarder Signed-off-by: Andrew Morton Reviewed-by: Andrew Morton Link: http://lkml.kernel.org/r/1583868093-24342-1-git-send-email-jrdr.linux@gmail.com Signed-off-by: Linus Torvalds Signed-off-by: Ni Xun --- mm/filemap.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mm/filemap.c b/mm/filemap.c index 85bb6dd90..3f9cde341 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -2138,8 +2138,7 @@ EXPORT_SYMBOL(find_get_pages_range_tag); * * It is going insane. Fix it by quickly scaling down the readahead size. */ -static void shrink_readahead_size_eio(struct file *filp, - struct file_ra_state *ra) +static void shrink_readahead_size_eio(struct file_ra_state *ra) { ra->ra_pages /= 4; } @@ -2406,7 +2405,7 @@ readpage: goto find_page; } unlock_page(page); - shrink_readahead_size_eio(filp, ra); + shrink_readahead_size_eio(ra); error = -EIO; goto readpage_error; } @@ -2788,7 +2787,7 @@ page_not_uptodate: goto retry_find; /* Things didn't work out. Return zero to tell the mm layer so. */ - shrink_readahead_size_eio(file, ra); + shrink_readahead_size_eio(ra); return VM_FAULT_SIGBUS; out_retry: