]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
commit43530c46cc55cf5a381e788276a93c83cbc95e46
treeecce232a9383ebf44df78e5e677a1861acd3a4fc
parent5d778aaeb013bf819d00e33de7c673c04b5c4886
Btrfs: fix unprotected device->bytes_used update

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>
fs/btrfs/volumes.c