On Fri, Jul 21, 2017 at 11:28:24AM +0300, Nikolay Borisov wrote:
> 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 substracting/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]>
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to