summaryrefslogtreecommitdiff
path: root/fs/btrfs/super.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2022-12-12 21:01:43 +0100
committerDavid Sterba <dsterba@suse.com>2022-12-15 19:16:50 +0100
commitdb0a4a7b8e95f9312a59a67cbd5bc589f090e13d (patch)
tree71e82d5cc497b0ea8c8bd50d69c85ff2db853c3e /fs/btrfs/super.c
parentabe3bf7425fb695a9b37394af18b9ea58a800802 (diff)
downloadlinux-db0a4a7b8e95f9312a59a67cbd5bc589f090e13d.tar.gz
linux-db0a4a7b8e95f9312a59a67cbd5bc589f090e13d.tar.bz2
linux-db0a4a7b8e95f9312a59a67cbd5bc589f090e13d.zip
btrfs: fix an error handling path in btrfs_defrag_leaves()
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>
Diffstat (limited to 'fs/btrfs/super.c')
0 files changed, 0 insertions, 0 deletions