summaryrefslogtreecommitdiff
path: root/tools/testing/vma/linux/git:/git.armlinux.org.uk
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-12-12 17:10:10 +0000
committerDavid Sterba <dsterba@suse.com>2025-12-16 22:53:15 +0100
commitf8da41de0bff9eb1d774a7253da0c9f637c4470a (patch)
tree05f13ee120f730eb572cd273b5dbfc2ddc7cee95 /tools/testing/vma/linux/git:/git.armlinux.org.uk
parent83f59076a1ae6f5c6845d6f7ed3a1a373d883684 (diff)
btrfs: do not free data reservation in fallback from inline due to -ENOSPC
If we fail to create an inline extent due to -ENOSPC, we will attempt to go through the normal COW path, reserve an extent, create an ordered extent, etc. However we were always freeing the reserved qgroup data, which is wrong since we will use data. Fix this by freeing the reserved qgroup data in __cow_file_range_inline() only if we are not doing the fallback (ret is <= 0). Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/testing/vma/linux/git:/git.armlinux.org.uk')
0 files changed, 0 insertions, 0 deletions