summaryrefslogtreecommitdiffstats
path: root/fs/read_write.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2018-10-30 10:41:34 +1100
committerDave Chinner <david@fromorbit.com>2018-10-30 10:41:34 +1100
commit3d28193e1df043764deb7abdaba5e3a6660bc393 (patch)
tree6f157e2e8e0ac5b77f7f25fedfab91b93c73293c /fs/read_write.c
parenta91ae49bbaf43910edb09e03fedf26b23875bd52 (diff)
downloadlinux-stable-3d28193e1df043764deb7abdaba5e3a6660bc393.tar.gz
linux-stable-3d28193e1df043764deb7abdaba5e3a6660bc393.tar.bz2
linux-stable-3d28193e1df043764deb7abdaba5e3a6660bc393.zip
vfs: pass remap flags to generic_remap_checks
Pass the same remap flags to generic_remap_checks for consistency. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Amir Goldstein <amir73il@gmail.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/read_write.c')
-rw-r--r--fs/read_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/read_write.c b/fs/read_write.c
index 201381689284..ebcbfc4f2907 100644
--- a/fs/read_write.c
+++ b/fs/read_write.c
@@ -1782,7 +1782,7 @@ int generic_remap_file_range_prep(struct file *file_in, loff_t pos_in,
/* Check that we don't violate system file offset limits. */
ret = generic_remap_checks(file_in, pos_in, file_out, pos_out, len,
- (remap_flags & REMAP_FILE_DEDUP));
+ remap_flags);
if (ret)
return ret;