diff options
author | Byongho Lee <bhlee.kernel@gmail.com> | 2015-09-01 23:36:28 +0900 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2015-10-21 18:28:48 +0200 |
commit | 568b1c9cca82623af764ee6ea65dc41a7079171c (patch) | |
tree | f3339cf7ea0b382e14527c853000b4af8638c7bd /fs/btrfs | |
parent | d7641a49a54f66e1a323d0de6b42caeee6d33aa5 (diff) | |
download | lwn-568b1c9cca82623af764ee6ea65dc41a7079171c.tar.gz lwn-568b1c9cca82623af764ee6ea65dc41a7079171c.zip |
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 <dsterba@suse.com>
Signed-off-by: Byongho Lee <bhlee.kernel@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/inode.c | 1 |
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); |