Skip to content

Commit

Permalink
btrfs: Do not reassign count in btrfs_run_delayed_refs
Browse files Browse the repository at this point in the history
Code cleanup. count is already (unsgined long)-1. That is the reason
run_all was set. Do not reassign it (unsigned long)-1.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
  • Loading branch information
Goldwyn Rodrigues authored and David Sterba committed Sep 26, 2016
1 parent 0ccd052 commit dd12d5b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -2972,7 +2972,6 @@ int btrfs_run_delayed_refs(struct btrfs_trans_handle *trans,
spin_unlock(&delayed_refs->lock);
goto out;
}
count = (unsigned long)-1;

while (node) {
head = rb_entry(node, struct btrfs_delayed_ref_head,
Expand Down

0 comments on commit dd12d5b

Please sign in to comment.