Skip to contentSkip to conversation

Do not reassign count in btrfs_run_delayed_refs

PATCH In review Goldwyn Rodrigues 2 participants 2 messages Sep 22, 2016 – Sep 23, 2016 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Do not reassign count in btrfs_run_delayed_refs

From: Goldwyn Rodrigues <[email protected]>

Code cleanup. count is already (unsgined long)-1. That is the reason run_all was set. Do not reassign it (unsigned long)-1.

---
 fs/btrfs/extent-tree.c | 1 -
 1 file changed, 1 deletion(-)
fs/btrfs/extent-tree.c +0 -1
index 38c2df8..23b3b9f 100644
@@ -2971,7 +2971,6 @@ again:
 			spin_unlock(&delayed_refs->lock);
 			goto out;
 		}
-		count = (unsigned long)-1;
 
 		while (node) {
 			head = rb_entry(node, struct btrfs_delayed_ref_head,
Signature · 1 line
2.6.6