summaryrefslogtreecommitdiff
path: root/fs/hfsplus/bnode.c
diff options
context:
space:
mode:
authorMiao Xie <miaox@cn.fujitsu.com>2014-07-24 11:37:13 +0800
committerChris Mason <clm@fb.com>2014-08-19 08:52:18 -0700
commit7df69d3e94d6de537fd1afb574c760d8dc83ab60 (patch)
tree045b628d8ac40f125bd62e4228516b9a191b87c1 /fs/hfsplus/bnode.c
parent5d68da3b8ee6eb2257aa4b8d885581782278ae93 (diff)
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/hfsplus/bnode.c')
0 files changed, 0 insertions, 0 deletions