]> asedeno.scripts.mit.edu Git - linux.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)
commit374bf9c5cd7d0b5c270cb954aaf18d794d4b088c
tree61d6ab174e4d36d2353308d31bcc132303290dc1
parent844245b4548499efad26e33e408a459b1fe3a346
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