Btrfs: fix unprotected device->bytes_used update
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 3 Sep 2014 13:35:36 +0000 (21:35 +0800)
committerChris Mason <clm@fb.com>
Wed, 17 Sep 2014 20:38:36 +0000 (13:38 -0700)
We should update device->bytes_used in the lock context of
chunk_mutex, or we would get wrong data.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>

No differences found