]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: unify error handling for ticket flushing
authorJosef Bacik <josef@toxicpanda.com>
Thu, 1 Aug 2019 22:19:34 +0000 (18:19 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 9 Sep 2019 12:59:10 +0000 (14:59 +0200)
commit5d94a0c9ed59a7ca0e862d57b3d37625c0364bf6
tree61d6ab174e4d36d2353308d31bcc132303290dc1
parent854d3aeceb0d317d55a0f8195e49a5d9c800cceb
btrfs: unify error handling for ticket flushing

Currently we handle the cleanup of errored out tickets in both the
priority flush path and the normal flushing path.  This is the same code
in both places, so just refactor so we don't duplicate the cleanup work.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/space-info.c