Files
linux/fs
Mark Harmstone 68a135013b btrfs: fix bytes_may_use leak in move_existing_remap()
If the call to btrfs_reserve_extent() in move_existing_remap() returns a
smaller extent than we asked for, currently we're not undoing the
bytes_may_use change that we made. Fix this by calling
btrfs_space_info_update_bytes_may_use() again for the difference.

Fixes: bbea42dfb9 ("btrfs: move existing remaps before relocating block group")
Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2026-04-21 04:00:32 +02:00
..
2026-02-27 15:42:14 -05:00
2026-01-02 13:43:41 -05:00
2026-03-26 14:25:23 +01:00
2025-11-28 12:42:31 +01:00
2026-01-12 16:52:09 +01:00
2026-03-19 11:18:01 +01:00
2026-01-12 16:52:09 +01:00