fs-remove-unnecessary-null-f_mapping-check-in-sync_file_range.patch removed from -mm tree
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 <[email protected]>
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.
Signed-off-by Jeff Layton <[email protected]>
Cc Alexander Viro <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
fs/sync.c | 5 ----- 1 file changed, 5 deletions(-)
fs/sync.c renamed from fs/sync.c~fs-remove-unnecessary-null-f_mapping-check-in-sync_file_range +0 -4
@@ -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; - }