aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSasha Levin2023-01-08 08:24:19 -0500
committerGreg Kroah-Hartman2023-01-12 12:01:56 +0100
commite92536de04e4e356a7f18a824b30bac1cb1d89a0 (patch)
treea157e957c4bddd4e1c67c62c6cb83ac068fb381d /include
parent667347e338cb0d76806ddb58275b56a37c6c20d9 (diff)
btrfs: fix an error handling path in btrfs_defrag_leaves()
[ Upstream commit db0a4a7b8e95f9312a59a67cbd5bc589f090e13d ] All error handling paths end to 'out', except this memory allocation failure. This is spurious. So branch to the error handling path also in this case. It will add a call to: memset(&root->defrag_progress, 0, sizeof(root->defrag_progress)); Fixes: 6702ed490ca0 ("Btrfs: Add run time btree defrag, and an ioctl to force btree defrag") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions