btrfs: fix race between quota disable and quota assign ioctls
[platform/kernel/linux-rpi.git] / fs / btrfs / extent_map.c
index 4a8e02f..5a36add 100644 (file)
@@ -360,7 +360,7 @@ static void extent_map_device_set_bits(struct extent_map *em, unsigned bits)
        int i;
 
        for (i = 0; i < map->num_stripes; i++) {
-               struct btrfs_bio_stripe *stripe = &map->stripes[i];
+               struct btrfs_io_stripe *stripe = &map->stripes[i];
                struct btrfs_device *device = stripe->dev;
 
                set_extent_bits_nowait(&device->alloc_state, stripe->physical,
@@ -375,7 +375,7 @@ static void extent_map_device_clear_bits(struct extent_map *em, unsigned bits)
        int i;
 
        for (i = 0; i < map->num_stripes; i++) {
-               struct btrfs_bio_stripe *stripe = &map->stripes[i];
+               struct btrfs_io_stripe *stripe = &map->stripes[i];
                struct btrfs_device *device = stripe->dev;
 
                __clear_extent_bit(&device->alloc_state, stripe->physical,