aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByongho Lee <[email protected]>2015-09-01 23:36:28 +0900
committerDavid Sterba <[email protected]>2015-10-21 18:28:48 +0200
commit568b1c9cca82623af764ee6ea65dc41a7079171c (patch)
treef3339cf7ea0b382e14527c853000b4af8638c7bd
parentd7641a49a54f66e1a323d0de6b42caeee6d33aa5 (diff)
btrfs: remove unnecessary list_del
We can safely iterate whole list items, without using list_del macro. So remove the list_del call. Reviewed-by: David Sterba <[email protected]> Signed-off-by: Byongho Lee <[email protected]> Signed-off-by: David Sterba <[email protected]>
-rw-r--r--fs/btrfs/inode.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index dc3a9fc8fc05..c4a97dc14378 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -2599,7 +2599,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);