X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=fs%2Fbtrfs%2Fvolumes.c;h=70f94b75f25a69c6e1189552e2fec8e9c2134528;hb=051df241e44693dba8f4e1e74184237f55dd811d;hp=1e4d43ffe38b33a0d24dbe2583d6f8cdb48c71c3;hpb=20192d9c9f6ae447c461285c915502ffbddf5696;p=linux-2.6-microblaze.git diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 1e4d43ffe38b..70f94b75f25a 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -1078,6 +1078,7 @@ static void __btrfs_free_extra_devids(struct btrfs_fs_devices *fs_devices, if (test_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state)) { list_del_init(&device->dev_alloc_list); clear_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); + fs_devices->rw_devices--; } list_del_init(&device->dev_list); fs_devices->num_devices--;