diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2014-09-03 21:35:33 +0800 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-09-17 13:38:33 -0700 |
commit | 935e5cc935bcbf9b3d0dd59fed7dbc0f2ebca6bc (patch) | |
tree | 2489d657687317839ab01cd1c617356851839726 /Kconfig | |
parent | 1c43366d3b3f0fa6c6e81aaf3aa18e0550245dad (diff) |
Btrfs: fix wrong disk size when writing super blocks
total_size will be changed when resizing a device, and disk_total_size
will be changed if resizing is successful. Meanwhile, the on-disk super
blocks of the previous transaction might not be updated. Considering
the consistency of the metadata in the previous transaction, We should
use the size in the previous transaction to check if the super block is
beyond the boundary of the device. Fix it.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions