From: Miao Xie Date: Wed, 3 Sep 2014 13:35:38 +0000 (+0800) Subject: Btrfs: fix unprotected device's variants on 32bits machine X-Git-Tag: omap-for-v3.19/prcm-cleanup~117^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cc8e58d53cd2295c3c1cee7b503bd1790ea4486;p=pandora-kernel.git Btrfs: fix unprotected device's variants on 32bits machine ->total_bytes,->disk_total_bytes,->bytes_used is protected by chunk lock when we change them, but sometimes we read them without any lock, and we might get unexpected value. We fix this problem like inode's i_size. Signed-off-by: Miao Xie Signed-off-by: Chris Mason --- Reading git-diff-tree failed