Miao Xie
7df69d3e94
Btrfs: Fix wrong device size when we are resizing the device
...
total_bytes of device is just a in-memory variant which is used to record
the size of the device, and it might be changed before we resize a device,
if the resize operation fails, it will be fallbacked. But some code used it
to update on-disk metadata of the device, it would cause the problem that
on-disk metadata of the devices was not consistent. We should use the other
variant named disk_total_bytes to update the on-disk metadata of device,
because that variant is updated only when the resize operation is successful.
Fix it.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
2014-08-19 08:52:18 -07:00
..
2014-06-12 10:30:18 -07:00
2014-05-06 17:38:00 -04:00
2014-06-12 10:30:18 -07:00
2014-07-29 10:14:36 -07:00
2014-07-03 09:21:53 -07:00
2014-06-06 16:08:09 -07:00
2014-05-06 17:38:00 -04:00
2014-08-19 08:52:18 -07:00
2014-06-06 16:08:14 -07:00
2014-06-12 23:06:23 -07:00
2014-06-24 08:10:24 -05:00
2014-06-06 16:08:16 -07:00
2014-06-04 16:53:53 -07:00
2014-06-06 16:08:14 -07:00
2014-06-12 10:26:14 -05:00
2014-05-06 17:38:00 -04:00
2014-06-04 16:54:14 -07:00
2014-06-04 16:54:21 -07:00
2014-06-12 10:30:18 -07:00
2014-06-04 16:54:14 -07:00
2014-06-12 00:18:51 -04:00
2014-06-12 10:30:18 -07:00
2014-07-12 16:11:42 -04:00
2014-07-09 05:59:55 -07:00
2014-06-12 10:30:18 -07:00
2014-06-06 16:08:16 -07:00
2014-07-22 16:37:43 +02:00
2014-07-18 11:15:14 +01:00
2014-05-06 17:38:00 -04:00
2014-06-12 10:30:18 -07:00
2014-05-06 17:38:00 -04:00
2014-06-12 10:30:18 -07:00
2014-06-04 16:54:11 -07:00
2014-05-21 10:26:13 +02:00
2014-07-05 19:18:22 -04:00
2014-06-12 10:30:18 -07:00
2014-06-12 10:30:18 -07:00
2014-07-10 11:38:23 -07:00
2014-06-10 11:50:57 -07:00
2014-05-06 17:38:00 -04:00
2014-05-06 17:38:00 -04:00
2014-06-04 16:54:21 -07:00
2014-07-13 15:18:44 -04:00
2014-07-23 10:31:56 -04:00
2014-05-06 17:38:00 -04:00
2014-06-06 16:08:16 -07:00
2014-06-12 10:30:18 -07:00
2014-06-23 16:47:45 -07:00
2014-05-06 17:38:00 -04:00
2014-07-03 09:21:54 -07:00
2014-06-06 16:08:13 -07:00
2014-07-15 22:36:18 +02:00
2014-06-12 00:18:51 -04:00
2014-06-12 10:30:18 -07:00
2014-05-06 17:37:55 -04:00
2014-06-04 16:53:52 -07:00
2014-06-03 08:11:18 -07:00
2014-05-06 17:38:00 -04:00
2014-06-12 10:30:18 -07:00
2014-05-06 17:39:36 -04:00
2014-06-12 10:30:18 -07:00
2014-07-15 07:28:41 +10:00
2014-07-14 13:05:26 -04:00
2014-06-10 13:57:22 -07:00
2014-06-05 08:05:29 -07:00
2014-06-04 16:54:21 -07:00
2014-06-12 10:30:18 -07:00
2014-06-04 16:54:10 -07:00
2014-07-23 15:10:54 -07:00
2014-06-12 10:30:18 -07:00
2014-08-01 02:35:51 -04:00
2014-06-06 16:08:16 -07:00
2014-06-16 17:21:59 -10:00
2014-06-06 07:56:22 +02:00
2014-06-12 10:30:18 -07:00
2014-05-06 17:31:10 -04:00
2014-06-10 13:57:22 -07:00
2014-06-04 16:53:55 -07:00
2014-06-10 12:29:05 -04:00
2014-05-19 11:02:18 -06:00
2014-06-25 22:08:29 -04:00
2014-06-04 16:54:02 -07:00
2014-07-24 06:18:12 -04:00
2014-08-01 02:36:04 -04:00
2014-05-06 17:39:42 -04:00
2014-05-06 17:37:55 -04:00
2014-06-04 16:53:52 -07:00
2014-07-03 09:21:54 -07:00
2014-06-12 00:28:09 -04:00
2014-06-04 16:54:11 -07:00
2014-07-23 15:10:55 -07:00