aboutsummaryrefslogtreecommitdiffstats
path: root/mm/filemap.c
diff options
context:
space:
mode:
authorJohannes Thumshirn <[email protected]>2025-03-17 11:24:59 +0000
committerDavid Sterba <[email protected]>2025-03-18 19:35:57 +0000
commit35fec1089ebb5617f85884d3fa6a699ce6337a75 (patch)
tree2398dc027c6d1dda28bbb91128012114f0a67473 /mm/filemap.c
parentbtrfs: zoned: fix zone activation with missing devices (diff)
downloadkernel-35fec1089ebb5617f85884d3fa6a699ce6337a75.tar.gz
kernel-35fec1089ebb5617f85884d3fa6a699ce6337a75.zip
btrfs: zoned: fix zone finishing with missing devices
If do_zone_finish() 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 finishing for it. Fixes: 4dcbb8ab31c1 ("btrfs: zoned: make zone finishing 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 'mm/filemap.c')
0 files changed, 0 insertions, 0 deletions