summaryrefslogtreecommitdiff
path: root/include/linux/stacktrace.h
diff options
context:
space:
mode:
authorMark Harmstone <mark@harmstone.com>2026-03-23 12:59:57 +0000
committerDavid Sterba <dsterba@suse.com>2026-04-21 04:00:39 +0200
commit9b8824533d75fb199a3fb0f6147ffcca64b5caf8 (patch)
tree6cecda3bb1f9db2ed41721e1e67662daf2b435da /include/linux/stacktrace.h
parent68a135013bf73dfd6a277f76fc4e088b0f3dfa79 (diff)
btrfs: fix bytes_may_use leak in do_remap_reloc_trans()
If the call to btrfs_reserve_extent() in do_remap_reloc_trans() 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: fd6594b1446c ("btrfs: replace identity remaps with actual remaps when doing relocations") Reviewed-by: Boris Burkov <boris@bur.io> Signed-off-by: Mark Harmstone <mark@harmstone.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/linux/stacktrace.h')
0 files changed, 0 insertions, 0 deletions