diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2014-07-24 07:37:13 +0400 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-08-19 19:52:18 +0400 |
commit | 7df69d3e94d6de537fd1afb574c760d8dc83ab60 (patch) | |
tree | 045b628d8ac40f125bd62e4228516b9a191b87c1 /fs/fat | |
parent | 5d68da3b8ee6eb2257aa4b8d885581782278ae93 (diff) | |
download | linux-7df69d3e94d6de537fd1afb574c760d8dc83ab60.tar.xz |
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>
Diffstat (limited to 'fs/fat')
0 files changed, 0 insertions, 0 deletions