summaryrefslogtreecommitdiff
path: root/ctree.h
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2018-06-08 15:47:49 +0300
committerDavid Sterba <dsterba@suse.com>2018-08-06 15:01:57 +0200
commitf3c710111694db1678c9af5d0ad913c8d1706444 (patch)
tree9edb2faf17e704e1cf6e6b0af2640360af2c9126 /ctree.h
parent6a4ae9bd851e996e22c98ca69a33ff49d8872f9f (diff)
btrfs-progs: check: Drop trans/root arguments from free_extent_hook
They are not really needed, what free_extent_hook wants is really a pointer to fs_info so give it to it directly. This is in preparation of delayed refs code. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'ctree.h')
-rw-r--r--ctree.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/ctree.h b/ctree.h
index 7d4e9b63..4719962d 100644
--- a/ctree.h
+++ b/ctree.h
@@ -1143,8 +1143,7 @@ struct btrfs_fs_info {
int transaction_aborted;
- int (*free_extent_hook)(struct btrfs_trans_handle *trans,
- struct btrfs_root *root,
+ int (*free_extent_hook)(struct btrfs_fs_info *fs_info,
u64 bytenr, u64 num_bytes, u64 parent,
u64 root_objectid, u64 owner, u64 offset,
int refs_to_drop);