aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2024-02-12 21:50:53 +0000
committerDavid Sterba <[email protected]>2024-02-13 17:38:19 +0000
commit88e81a67773017a2b93f6d5fe7c78bb0c5a6e4dd (patch)
treedfc87ddb3c57ac49f85bc68d237b84fdc17361f1 /fs/btrfs/dev-replace.c
parentbtrfs: reject encoded write if inode has nodatasum flag set (diff)
downloadkernel-88e81a67773017a2b93f6d5fe7c78bb0c5a6e4dd.tar.gz
kernel-88e81a67773017a2b93f6d5fe7c78bb0c5a6e4dd.zip
btrfs: zoned: fix chunk map leak when loading block group zone info
At btrfs_load_block_group_zone_info() we never drop a reference on the chunk map we have looked up, therefore leaking a reference on it. So add the missing btrfs_free_chunk_map() at the end of the function. Fixes: 7dc66abb5a47 ("btrfs: use a dedicated data structure for chunk maps") Reported-by: Johannes Thumshirn <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Tested-by: Johannes Thumshirn <[email protected]> Reviewed-by: Anand Jain <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions