diff options
| author | Johannes Thumshirn <[email protected]> | 2025-03-17 11:24:58 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-03-18 19:35:57 +0000 |
| commit | 2bbc4a45e5eb6b868357c1045bf6f38f6ba576e0 (patch) | |
| tree | 1ce154fa656fd4f7be60745006e734ea00e72b4a /net/unix/af_unix.c | |
| parent | btrfs: remove end_no_trans label from btrfs_log_inode_parent() (diff) | |
| download | kernel-2bbc4a45e5eb6b868357c1045bf6f38f6ba576e0.tar.gz kernel-2bbc4a45e5eb6b868357c1045bf6f38f6ba576e0.zip | |
btrfs: zoned: fix zone activation with missing devices
If btrfs_zone_activate() is called with a filesystem that has missing
devices (e.g. a RAID file system mounted in degraded mode) it is accessing
the btrfs_device::zone_info pointer, which will not be set if the device in
question is missing.
Check if the device is present (by checking if it has a valid block
device pointer associated) and if not, skip zone activation for it.
Fixes: f9a912a3c45f ("btrfs: zoned: make zone activation multi stripe capable")
CC: [email protected] # 6.1+
Reviewed-by: Naohiro Aota <[email protected]>
Reviewed-by: Anand Jain <[email protected]>
Signed-off-by: Johannes Thumshirn <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
