]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix wrong missing device counter decrease
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 16 Jul 2014 10:38:01 +0000 (18:38 +0800)
committerChris Mason <clm@fb.com>
Tue, 19 Aug 2014 15:52:10 +0000 (08:52 -0700)
commit8894fe89f82e9dd0d4c917809a8d03dab4e16c4b
treeaa8207c5030d654a2897e7363a6d4a2e7bd6a1d6
parentb6c97bf8f6864d6beb8624d1d116f88ec3954ae0
Btrfs: fix wrong missing device counter decrease

The missing devices are accounted by its own fs device, for example
the missing devices in seed filesystem will be accounted by the fs device
of the seed filesystem, not by the new filesystem which is based on
the seed filesystem, so when we remove the missing device in the
seed filesystem, we should decrease the counter of its own fs device.
Fix it.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/volumes.c