Mark Fasheh
e1d227a42e
btrfs: Handle unaligned length in extent_same
...
The extent-same code rejects requests with an unaligned length. This
poses a problem when we want to dedupe the tail extent of files as we
skip cloning the portion between i_size and the extent boundary.
If we don't clone the entire extent, it won't be deleted. So the
combination of these behaviors winds up giving us worst-case dedupe on
many files.
We can fix this by allowing a length that extents to i_size and
internally aligining those to the end of the block. This is what
btrfs_ioctl_clone() so we can just copy that check over.
Signed-off-by: Mark Fasheh <mfasheh@suse.de >
Signed-off-by: Chris Mason <clm@fb.com >
2015-06-10 07:02:50 -07:00
..
2015-04-13 07:52:44 -07:00
2014-06-09 17:20:42 -07:00
2015-02-16 18:48:47 +01:00
2015-02-16 18:48:47 +01:00
2015-06-03 04:03:08 -07:00
2015-01-14 19:23:47 +01:00
2015-03-26 17:56:23 -07:00
2015-03-25 10:52:48 -07:00
2013-11-24 16:33:41 -07:00
2015-03-25 10:52:48 -07:00
2015-02-16 18:48:44 +01:00
2015-06-03 04:03:08 -07:00
2015-06-10 07:02:46 -07:00
2015-04-26 06:27:03 -07:00
2014-01-28 13:20:09 -08:00
2015-04-10 14:04:47 -07:00
2015-04-10 14:04:47 -07:00
2015-03-03 17:23:57 +01:00
2012-12-12 17:15:41 -05:00
2014-11-20 17:20:07 -08:00
2015-06-03 04:03:08 -07:00
2015-02-16 18:48:43 +01:00
2015-04-15 15:06:57 -04:00
2015-06-03 04:03:03 -07:00
2015-02-16 18:48:44 +01:00
2014-11-21 11:59:54 -08:00
2014-06-19 14:20:55 -07:00
2015-06-10 07:02:46 -07:00
2015-03-25 10:52:48 -07:00
2015-06-10 07:02:43 -07:00
2015-06-02 19:34:34 -07:00
2015-04-10 14:07:22 -07:00
2014-10-14 10:51:22 +02:00
2014-01-28 13:20:31 -08:00
2015-01-21 18:02:05 -08:00
2015-04-10 14:07:22 -07:00
2011-04-25 16:46:11 +08:00
2015-06-03 04:03:09 -07:00
2015-06-10 07:02:50 -07:00
2015-01-06 11:04:29 -08:00
2014-11-19 10:34:35 -08:00
2014-11-19 10:34:35 -08:00
2015-02-16 18:48:44 +01:00
2014-06-09 17:20:49 -07:00
2015-03-03 17:23:57 +01:00
2015-06-10 07:02:44 -07:00
2015-06-10 07:02:43 -07:00
2014-09-17 13:37:12 -07:00
2014-10-02 17:14:50 +02:00
2013-05-06 15:55:23 -04:00
2015-02-16 18:48:44 +01:00
2014-01-28 13:20:24 -08:00
2015-06-02 19:34:35 -07:00
2015-04-13 07:52:50 -07:00
2015-03-25 10:52:48 -07:00
2015-01-21 18:06:47 -08:00
2012-06-14 21:29:16 -04:00
2015-01-21 18:06:48 -08:00
2015-06-03 04:03:08 -07:00
2014-06-09 17:20:40 -07:00
2015-03-25 10:52:48 -07:00
2015-06-10 07:02:41 -07:00
2013-05-06 15:55:23 -04:00
2012-07-23 16:28:06 -04:00
2015-06-03 04:03:02 -07:00
2015-02-16 18:48:44 +01:00
2015-03-03 17:24:02 +01:00
2015-06-03 04:03:04 -07:00
2015-06-03 04:03:04 -07:00
2015-06-02 19:34:33 -07:00
2015-06-03 04:03:06 -07:00
2015-03-26 17:56:23 -07:00
2014-01-29 07:06:27 -08:00
2014-08-15 07:43:19 -07:00
2014-09-17 13:38:02 -07:00
2015-06-10 07:02:46 -07:00
2015-02-16 18:48:45 +01:00
2015-04-26 17:22:07 -07:00
2014-01-25 23:58:18 -05:00
2015-02-16 18:48:44 +01:00