diff options
author | David Sterba <dsterba@suse.com> | 2017-02-09 17:24:50 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-03-08 13:00:47 +0100 |
commit | 497f9742945d30967efef1c123ad8efad721bb14 (patch) | |
tree | d9e44d89e5895ec071ef1cb3972c33366a64bc8c /transaction.h | |
parent | 4999d033d3b00d895807f192a986d7bdd926f8a1 (diff) |
btrfs-progs: opencode trivial helper btrfs_free_transaction
It also does not exist in kernel code.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'transaction.h')
-rw-r--r-- | transaction.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/transaction.h b/transaction.h index 13e09a64..0c41af51 100644 --- a/transaction.h +++ b/transaction.h @@ -54,11 +54,4 @@ btrfs_start_transaction(struct btrfs_root *root, int num_blocks) return h; } -static inline void btrfs_free_transaction(struct btrfs_root *root, - struct btrfs_trans_handle *handle) -{ - memset(handle, 0, sizeof(*handle)); - free(handle); -} - #endif |