Wang Xiaoguang
dcb40c196f
btrfs: use correct offset for reloc_inode in prealloc_file_extent_cluster()
...
In prealloc_file_extent_cluster(), btrfs_check_data_free_space() uses
wrong file offset for reloc_inode, it uses cluster->start and cluster->end,
which indeed are extent's bytenr. The correct value should be
cluster->[start|end] minus block group's start bytenr.
start bytenr cluster->start
| | extent | extent | ...| extent |
|----------------------------------------------------------------|
| block group reloc_inode |
Signed-off-by: Wang Xiaoguang <wangxg.fnst@cn.fujitsu.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
2016-08-25 03:58:24 -07:00
..
2016-07-26 13:53:18 +02:00
2016-07-26 13:52:25 +02:00
2016-07-26 13:53:15 +02:00
2016-07-26 13:53:15 +02:00
2016-08-25 03:58:16 -07:00
2015-01-14 19:23:47 +01:00
2016-05-25 22:51:03 +02:00
2016-06-17 18:32:40 +02:00
2013-11-24 16:33:41 -07:00
2016-07-26 13:52:25 +02:00
2016-03-11 17:12:46 +01:00
2016-07-26 13:54:26 +02:00
2016-08-25 03:58:19 -07:00
2016-07-26 13:52:25 +02:00
2016-07-26 13:54:26 +02:00
2016-06-25 06:20:10 -07:00
2016-08-25 03:58:21 -07:00
2016-08-03 11:02:51 +01:00
2016-07-26 13:53:16 +02:00
2016-04-28 10:59:13 +02:00
2014-11-20 17:20:07 -08:00
2016-08-25 03:58:20 -07:00
2016-07-26 13:53:18 +02:00
2015-10-06 06:55:23 -07:00
2008-09-25 11:04:06 -04:00
2016-07-26 13:52:25 +02:00
2016-06-02 19:23:14 +02:00
2016-07-26 13:52:25 +02:00
2016-01-15 19:22:28 +01:00
2016-08-25 03:58:21 -07:00
2016-08-03 14:08:37 -07:00
2016-08-05 12:25:05 -07:00
2016-07-26 13:54:26 +02:00
2016-05-25 22:35:14 +02:00
2016-07-26 13:54:26 +02:00
2015-12-17 12:16:47 -08:00
2016-06-06 14:08:28 +02:00
2016-06-06 14:08:28 +02:00
2016-04-28 10:36:54 +02:00
2016-07-26 13:54:26 +02:00
2016-01-15 19:25:02 +01:00
2016-08-05 12:25:05 -07:00
2016-08-25 03:58:20 -07:00
2015-01-06 11:04:29 -08:00
2016-01-07 14:30:52 +01:00
2014-11-19 10:34:35 -08:00
2016-04-04 10:41:08 -07:00
2015-12-17 12:16:47 -08:00
2015-03-03 17:23:57 +01:00
2016-07-26 13:52:25 +02:00
2016-05-30 12:58:21 +01:00
2014-09-17 13:37:12 -07:00
2016-02-11 16:15:43 +01:00
2013-05-06 15:55:23 -04:00
2016-07-26 13:54:22 +02:00
2014-01-28 13:20:24 -08:00
2016-08-25 03:58:21 -07:00
2016-08-25 03:58:21 -07:00
2016-05-25 22:35:14 +02:00
2015-08-09 07:34:26 -07:00
2012-06-14 21:29:16 -04:00
2016-05-30 12:58:18 +01:00
2016-08-25 03:58:24 -07:00
2016-07-26 13:54:26 +02:00
2016-07-26 13:53:15 +02:00
2016-08-01 07:31:41 +01:00
2016-01-07 14:38:02 +01:00
2016-05-25 22:35:14 +02:00
2016-07-26 13:54:26 +02:00
2016-07-26 13:52:25 +02:00
2016-01-21 18:50:40 +01:00
2016-07-26 13:54:26 +02:00
2016-07-26 13:54:26 +02:00
2015-12-18 02:51:32 +00:00
2016-08-25 03:58:23 -07:00
2016-03-01 08:23:25 -08:00
2016-05-25 22:35:14 +02:00
2015-06-10 09:26:17 -07:00
2014-09-17 13:38:02 -07:00
2016-07-26 13:54:26 +02:00
2016-05-16 15:46:29 +02:00
2016-05-27 15:39:43 -04:00
2016-05-17 19:17:09 -04:00
2016-04-04 10:41:08 -07:00