From: Miao Xie Date: Wed, 3 Sep 2014 13:35:33 +0000 (+0800) Subject: Btrfs: fix wrong disk size when writing super blocks X-Git-Tag: omap-for-v3.19/prcm-cleanup~117^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=935e5cc935bcbf9b3d0dd59fed7dbc0f2ebca6bc;p=pandora-kernel.git 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 Signed-off-by: Chris Mason --- Reading git-diff-tree failed