Message ID | 5a221a55c0a170aa6073b997a160d94f9880e40e.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 c21a97b32f9a..8924f58919e8 100644 --- a/fs/btrfs/zoned.c +++ b/fs/btrfs/zoned.c @@ -2110,6 +2110,9 @@ bool btrfs_zone_activate(struct btrfs_block_group *block_group) physical = map->stripes[i].physical; zinfo = device->zone_info; + if (!device->bdev) + continue; + if (zinfo->max_active_zones == 0) continue;