Message ID | bb295448aa49bf3ea08ae7244bb1b3d044e711da.1742210138.git.jth@kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | btrfs: zoned: fix zone management on degraded filesystems | expand |
diff --git a/fs/btrfs/zoned.c b/fs/btrfs/zoned.c index 8924f58919e8..7c502192cd6b 100644 --- a/fs/btrfs/zoned.c +++ b/fs/btrfs/zoned.c @@ -2274,6 +2274,9 @@ static int do_zone_finish(struct btrfs_block_group *block_group, bool fully_writ struct btrfs_zoned_device_info *zinfo = device->zone_info; unsigned int nofs_flags; + if (!device->bdev) + continue; + if (zinfo->max_active_zones == 0) continue;