summaryrefslogtreecommitdiff
path: root/fs/btrfs/backref.h
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2020-03-23 16:57:15 +0800
committerDavid Sterba <dsterba@suse.com>2020-05-25 11:25:21 +0200
commit1b23ea180b6b4186ff79db767dcbec612477968f (patch)
treefef2c58b8b74e92f919794659792cbc47ceb7996 /fs/btrfs/backref.h
parentfc997ed05a9f9d2185b8804fb2d0273e6d9e921a (diff)
btrfs: reloc: move error handling of build_backref_tree() to backref.c
The error cleanup will be extracted as a new function, btrfs_backref_error_cleanup(), and moved to backref.c and exported for later usage. Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/backref.h')
-rw-r--r--fs/btrfs/backref.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/backref.h b/fs/btrfs/backref.h
index 80a43359d216..18393cc05ca2 100644
--- a/fs/btrfs/backref.h
+++ b/fs/btrfs/backref.h
@@ -372,4 +372,7 @@ int btrfs_backref_add_tree_node(struct btrfs_backref_cache *cache,
int btrfs_backref_finish_upper_links(struct btrfs_backref_cache *cache,
struct btrfs_backref_node *start);
+void btrfs_backref_error_cleanup(struct btrfs_backref_cache *cache,
+ struct btrfs_backref_node *node);
+
#endif