aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi
diff options
context:
space:
mode:
authorNikolay Borisov <[email protected]>2017-07-21 11:28:24 +0300
committerDavid Sterba <[email protected]>2017-07-24 16:05:00 +0200
commit0e4324a4c36b3eb5cd1f71cbbc38d888f919ebfc (patch)
treeda38571564787f0e289ca307712f99fb7671c933 /lib/mpi
parent17024ad0a0fdfcfe53043afb969b813d3e020c21 (diff)
btrfs: round down size diff when shrinking/growing device
Further testing showed that the fix introduced in 7dfb8be11b5d ("btrfs: Round down values which are written for total_bytes_size") was insufficient and it could still lead to discrepancies between the total_bytes in the super block and the device total bytes. So this patch also ensures that the difference between old/new sizes when shrinking/growing is also rounded down. This ensure that we won't be subtracting/adding a non-sectorsize multiples to the superblock/device total sizees. Fixes: 7dfb8be11b5d ("btrfs: Round down values which are written for total_bytes_size") Signed-off-by: Nikolay Borisov <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions