From patchwork Tue Sep 1 14:36:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Byongho Lee X-Patchwork-Id: 7105711 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 393F89F36E for ; Tue, 1 Sep 2015 14:36:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 60188205F1 for ; Tue, 1 Sep 2015 14:36:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8BE3B205EE for ; Tue, 1 Sep 2015 14:36:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752736AbbIAOgk (ORCPT ); Tue, 1 Sep 2015 10:36:40 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:32924 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750773AbbIAOgj (ORCPT ); Tue, 1 Sep 2015 10:36:39 -0400 Received: by paczk9 with SMTP id zk9so31260842pac.0 for ; Tue, 01 Sep 2015 07:36:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=mcQFa5MKKQHsdO/OeYyM6YBKi9EFUkviw1TOo0iYprM=; b=tCZJY6OkrY9Y2lNAPnypd3MyLURcyzeve0suNAGcypVgBNtlObww0sU4JY6ddjnaa6 zeTRnhH6n66LeeM7Dld7U48DmeTKUANFei6K68O0VG7APW0KcKYngrrBmaQCj8NKWxUc BQTYppHCXViqa0WhbS+P1bWVDnv3/lfrspYS4ZsOkyJGmi7yxks82p26sj9XLT0t9gUl E9qxuun/mla796+MoQ7808QOuDpvhx22nABmo7uKWYodY1Df10LJone4ejuMnrdFnMFH XCPPwAsDKRxclMqmvRR/XGpjd9jPcRNHyAJY7aokCLb8yt3bnQPyPVy5xUjTA9rxjmyR vo0w== X-Received: by 10.68.103.132 with SMTP id fw4mr47625427pbb.62.1441118199090; Tue, 01 Sep 2015 07:36:39 -0700 (PDT) Received: from arch-nb.localdomain ([175.118.89.137]) by smtp.gmail.com with ESMTPSA id hb1sm18387507pbd.36.2015.09.01.07.36.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Sep 2015 07:36:38 -0700 (PDT) From: Byongho Lee To: linux-btrfs@vger.kernel.org Subject: [PATCH] btrfs: remove unnecessary list_del Date: Tue, 1 Sep 2015 23:36:28 +0900 Message-Id: <1441118188-63111-1-git-send-email-bhlee.kernel@gmail.com> X-Mailer: git-send-email 2.5.1 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We can safely iterate whole list items, without using list_del macro. So remove the list_del call. Signed-off-by: Byongho Lee --- fs/btrfs/inode.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index bda3c41dc9d5..fe42e339efec 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -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);