mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [merged] fs-remove-unnecessary-null-f_mapping-check-in-sync_file_range.patch removed from -mm tree
@ 2017-09-07 18:40 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2017-09-07 18:40 UTC (permalink / raw)
  To: jlayton, mm-commits, viro


The patch titled
     Subject: fs/sync.c: remove unnecessary NULL f_mapping check in sync_file_range
has been removed from the -mm tree.  Its filename was
     fs-remove-unnecessary-null-f_mapping-check-in-sync_file_range.patch

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

------------------------------------------------------
From: Jeff Layton <jlayton@redhat.com>
Subject: fs/sync.c: remove unnecessary NULL f_mapping check in sync_file_range

fsync codepath assumes that f_mapping can never be NULL, but
sync_file_range has a check for that.  Remove the one from sync_file_range
as I don't see how you'd ever get a NULL pointer in here.

Link: http://lkml.kernel.org/r/20170525110509.9434-1-jlayton@redhat.com
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 fs/sync.c |    5 -----
 1 file changed, 5 deletions(-)

diff -puN fs/sync.c~fs-remove-unnecessary-null-f_mapping-check-in-sync_file_range fs/sync.c
--- a/fs/sync.c~fs-remove-unnecessary-null-f_mapping-check-in-sync_file_range
+++ a/fs/sync.c
@@ -335,11 +335,6 @@ SYSCALL_DEFINE4(sync_file_range, int, fd
 		goto out_put;
 
 	mapping = f.file->f_mapping;
-	if (!mapping) {
-		ret = -EINVAL;
-		goto out_put;
-	}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-09-07 18:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-07 18:40 [merged] fs-remove-unnecessary-null-f_mapping-check-in-sync_file_range.patch removed from -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).