Skip to contentSkip to conversation

mm-filemapc-remove-unused-argument-from-shrink_readahead_size_eio.patch removed from -mm tree

merged [email protected] 1 participant 1 message Apr 3, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/filemap.c: remove unused argument from shrink_readahead_size_eio()
has been removed from the -mm tree. Its filename was
mm-filemapc-remove-unused-argument-from-shrink_readahead_size_eio.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Souptick Joarder <[email protected]>
Subject: 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.

---

 mm/filemap.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
mm/filemap.c renamed from mm/filemap.c~mm-filemapc-remove-unused-argument-from-shrink_readahead_size_eio +3 -4
@@ -1962,8 +1962,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;
 }
@@ -2188,7 +2187,7 @@ readpage:
 					goto find_page;
 				}
 				unlock_page(page);
-				shrink_readahead_size_eio(filp, ra);
+				shrink_readahead_size_eio(ra);
 				error = -EIO;
 				goto readpage_error;
 			}
@@ -2560,7 +2559,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:

_

Patches currently in -mm which might be from [email protected] are