diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2014-09-03 15:35:38 +0200 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-09-17 22:38:38 +0200 |
commit | 7cc8e58d53cd2295c3c1cee7b503bd1790ea4486 (patch) | |
tree | 1befd9a2bea8e1808f0fe1b12406c05b3f7dbe2d /fs/namei.c | |
parent | Btrfs: update free_chunk_space during allocting a new chunk (diff) | |
download | linux-7cc8e58d53cd2295c3c1cee7b503bd1790ea4486.tar.xz linux-7cc8e58d53cd2295c3c1cee7b503bd1790ea4486.zip |
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>
Diffstat (limited to 'fs/namei.c')
0 files changed, 0 insertions, 0 deletions