Commit 0f8e2db4 authored by Souptick Joarder's avatar Souptick Joarder Committed by Linus Torvalds

mm/filemap.c: remove unused argument from shrink_readahead_size_eio()

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: default avatarSouptick Joarder <jrdr.linux@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Reviewed-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/1583868093-24342-1-git-send-email-jrdr.linux@gmail.comSigned-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent faffdfa0
...@@ -1962,8 +1962,7 @@ EXPORT_SYMBOL(find_get_pages_range_tag); ...@@ -1962,8 +1962,7 @@ EXPORT_SYMBOL(find_get_pages_range_tag);
* *
* It is going insane. Fix it by quickly scaling down the readahead size. * It is going insane. Fix it by quickly scaling down the readahead size.
*/ */
static void shrink_readahead_size_eio(struct file *filp, static void shrink_readahead_size_eio(struct file_ra_state *ra)
struct file_ra_state *ra)
{ {
ra->ra_pages /= 4; ra->ra_pages /= 4;
} }
...@@ -2188,7 +2187,7 @@ static ssize_t generic_file_buffered_read(struct kiocb *iocb, ...@@ -2188,7 +2187,7 @@ static ssize_t generic_file_buffered_read(struct kiocb *iocb,
goto find_page; goto find_page;
} }
unlock_page(page); unlock_page(page);
shrink_readahead_size_eio(filp, ra); shrink_readahead_size_eio(ra);
error = -EIO; error = -EIO;
goto readpage_error; goto readpage_error;
} }
...@@ -2560,7 +2559,7 @@ vm_fault_t filemap_fault(struct vm_fault *vmf) ...@@ -2560,7 +2559,7 @@ vm_fault_t filemap_fault(struct vm_fault *vmf)
goto retry_find; goto retry_find;
/* Things didn't work out. Return zero to tell the mm layer so. */ /* 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; return VM_FAULT_SIGBUS;
out_retry: out_retry:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment