Skip to contentSkip to conversation

btrfs: remove unnecessary list_del

PATCH New Byongho Lee 1 participant 1 message Sep 1, 2015 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs: remove unnecessary list_del

We can safely iterate whole list items, without using list_del macro. So remove the list_del call.

---
 fs/btrfs/inode.c | 1 -
 1 file changed, 1 deletion(-)
fs/btrfs/inode.c +0 -1
index bda3c41dc9d5..fe42e339efec 100644
@@ -2595,7 +2595,6 @@ static void free_sa_defrag_extent(struct new_sa_defrag_extent *new)
 		return;
 
 	list_for_each_entry_safe(old, tmp, &new->head, list) {
-		list_del(&old->list);
 		kfree(old);
 	}
 	kfree(new);
Signature · 1 line
2.5.1