]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/xfs/xfs_file.c
Merge branch 'xfs-4.10-misc-fixes-3' into for-next
[mirror_ubuntu-bionic-kernel.git] / fs / xfs / xfs_file.c
index f5effa68e037ae59f57b1f1188dbe4e2eb40b15c..b837ad8a63e44100d142be8eb3319638c279f4b3 100644 (file)
@@ -883,7 +883,6 @@ xfs_file_clone_range(
                                     len, false);
 }
 
-#define XFS_MAX_DEDUPE_LEN     (16 * 1024 * 1024)
 STATIC ssize_t
 xfs_file_dedupe_range(
        struct file     *src_file,
@@ -894,14 +893,6 @@ xfs_file_dedupe_range(
 {
        int             error;
 
-       /*
-        * Limit the total length we will dedupe for each operation.
-        * This is intended to bound the total time spent in this
-        * ioctl to something sane.
-        */
-       if (len > XFS_MAX_DEDUPE_LEN)
-               len = XFS_MAX_DEDUPE_LEN;
-
        error = xfs_reflink_remap_range(src_file, loff, dst_file, dst_loff,
                                     len, true);
        if (error)