]> 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)
commitf12f991898947de13c7ffd156d8a2fd4b5b78c9a
tree61d6ab174e4d36d2353308d31bcc132303290dc1
parent9135daf763fd331a470e1d148e7f33a2cb4c9265
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