diff options
author | Nikolay Borisov <nborisov@suse.com> | 2018-03-15 14:36:22 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-03-31 01:26:57 +0200 |
commit | a6dbceafb915e86d1a34d8d61403c59e01c2875c (patch) | |
tree | a05c93d6da067e72a585cdb1bba3da06a7dbdabb /fs/btrfs/backref.c | |
parent | ba89b80268c162eca8f23c5d71eb710d65a132fe (diff) |
btrfs: Remove unused op_key var from add_delayed_refs
Added as part of 86d5f9944252 ("btrfs: convert prelimary reference
tracking to use rbtrees") but never used. tmp_op_key essentially
subsumed that variable.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/backref.c')
-rw-r--r-- | fs/btrfs/backref.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c index 4a33448cbb01..6007dd6b799e 100644 --- a/fs/btrfs/backref.c +++ b/fs/btrfs/backref.c @@ -773,15 +773,12 @@ static int add_delayed_refs(const struct btrfs_fs_info *fs_info, struct btrfs_delayed_extent_op *extent_op = head->extent_op; struct btrfs_key key; struct btrfs_key tmp_op_key; - struct btrfs_key *op_key = NULL; struct rb_node *n; int count; int ret = 0; - if (extent_op && extent_op->update_key) { + if (extent_op && extent_op->update_key) btrfs_disk_key_to_cpu(&tmp_op_key, &extent_op->key); - op_key = &tmp_op_key; - } spin_lock(&head->lock); for (n = rb_first(&head->ref_tree); n; n = rb_next(n)) { |