Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3643622imm; Mon, 17 Sep 2018 00:13:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaNg0BOuqoll2rx0tuRe2q1Zuee1pSAiuW7S5GLNnl13djSWLIp36DZdET8fyass8to3EjP X-Received: by 2002:a17:902:768c:: with SMTP id m12-v6mr23465163pll.56.1537168406391; Mon, 17 Sep 2018 00:13:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537168406; cv=none; d=google.com; s=arc-20160816; b=Gk5HMEfbDgcD6R30yqXyj7VXwmqRlFq2ycLttccz/lUDBn7rU71QFdKoQgl5c1YA+M FwE+LAF8Tvfs8GDuxqKtqcSRqHPnHw/YE0BMFDUup9Z9UyOwvrPxH89S/KMpt0j98H0G Jc/26zCeOIxEOGfr5TIxohZgqRusq+L9AFxo8dtM6LEv6VfqW4ZKthz7hVbkY1l+Zn3+ vtCUXLr0sYjrbMWJZ07sgr9YMQ5Af0BSt/k8IGR8klvL17Deh+XLOXU+2VzEXuiYfWpT TJnjdoSf07jX1VpfMKGQnbo+n7WyS6Cx5IPN7fKiDJVhlFnmm9KPFdrjK45OGvQVNyz9 IIxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=+prHCABnFguw1x9g4b5HcBCvLfhYM3P2M6DF4uc/gxw=; b=B/Pz0Ww6k4Nbx9u1X96cpx6UD7+ZMVssuMooxAIQPxCfnT0DIq9ZRQUPcygToDzzpf +JeEzxlEmy2tSaACvOI1OneeLxRcR6mF7J6WQaNCqpQgYHhim2m5yFgyDinJmuhCTHWc JrtDE4aRvi6Bgt9ZKv3X2Ya8VGxGSyemZrcUuPCEazEwEXZ6Qv48xDzso9tYQZh3AKRX xoW8H8muFRzkJqkfMWWNMvB2ujHepO+LcVeTIeO8ZlCLRoJB2A31rVDrVBENGmOYHKeh Y33fWJLX+t7QjQmVWcoe4WlJy6uqy2K0nWUXVXRbh9ovWBHS96TQi2h9U2ZPmV20xyvr PHDg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w2-v6si15127212pgh.182.2018.09.17.00.13.08; Mon, 17 Sep 2018 00:13:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728015AbeIQMix (ORCPT + 99 others); Mon, 17 Sep 2018 08:38:53 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:12161 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726652AbeIQMix (ORCPT ); Mon, 17 Sep 2018 08:38:53 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 7BD1BC216B429; Mon, 17 Sep 2018 15:12:45 +0800 (CST) Received: from szvp000201624.huawei.com (10.120.216.130) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.399.0; Mon, 17 Sep 2018 15:12:40 +0800 From: Chao Yu To: Dave Kleikamp , "open list:JFS FILESYSTEM" , open list CC: , Chao Yu Subject: [PATCH] jfs: remove redundant dquot_initialize() in jfs_evict_inode() Date: Mon, 17 Sep 2018 15:12:21 +0800 Message-ID: <20180917071221.13187-1-yuchao0@huawei.com> X-Mailer: git-send-email 2.18.0.rc1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.120.216.130] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We don't need to call dquot_initialize() twice in jfs_evict_inode(), remove one of them for cleanup. Signed-off-by: Chao Yu --- fs/jfs/inode.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/jfs/inode.c b/fs/jfs/inode.c index 054cc761b426..805ae9e8944a 100644 --- a/fs/jfs/inode.c +++ b/fs/jfs/inode.c @@ -166,7 +166,6 @@ void jfs_evict_inode(struct inode *inode) /* * Free the inode from the quota allocation. */ - dquot_initialize(inode); dquot_free_inode(inode); } } else { -- 2.18.0.rc1