commit | 7cc8e58d53cd2295c3c1cee7b503bd1790ea4486 | [log] [tgz] |
---|---|---|
author | Miao Xie <miaox@cn.fujitsu.com> | Wed Sep 03 21:35:38 2014 +0800 |
committer | Chris Mason <clm@fb.com> | Wed Sep 17 13:38:38 2014 -0700 |
tree | 1befd9a2bea8e1808f0fe1b12406c05b3f7dbe2d | |
parent | 1c1161870c8bcb0d966ebbf1aec05a87a79a4175 [diff] |
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 <miaox@cn.fujitsu.com> Signed-off-by: Chris Mason <clm@fb.com>