btrfs: Do not reassign count in btrfs_run_delayed_refs
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Thu, 22 Sep 2016 19:11:47 +0000 (14:11 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2016 17:37:06 +0000 (19:37 +0200)
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>
fs/btrfs/extent-tree.c

index e229d740bdfe32b159aad3582dbd71fee794fc5e..475962850a1f699ffc5c27c51b4234963045fbc2 100644 (file)
@@ -2972,7 +2972,6 @@ again:
                        spin_unlock(&delayed_refs->lock);
                        goto out;
                }
-               count = (unsigned long)-1;
 
                while (node) {
                        head = rb_entry(node, struct btrfs_delayed_ref_head,