Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1812113ybn; Thu, 26 Sep 2019 02:34:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzdVzOVEK755f2dyYI4Tzg9wvyNkg/N8dsksTaskvcIJgVVJJObD+h3EBgvGap3ihLPnaNq X-Received: by 2002:a05:6402:a4b:: with SMTP id bt11mr2423766edb.175.1569490493176; Thu, 26 Sep 2019 02:34:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569490493; cv=none; d=google.com; s=arc-20160816; b=F/nvnbxPXo4nip+6rJukgDYNmueQTUp8Ya9PqWjl02bN7knfONZUJH1kXptJLUSHDE yBKrG2iLL/ARSBpCBy3A6dKHx2jNYqh1W9S1sCsWqiygkCYU98V65cpi3nF66WOCQ1ua 9Ls89Q/P9xokE6lhoPU5fHcah8Q6qe65UyxfEmfDNZ1g7epLObU0DOHfgJ8YZyhm4No6 OBRk3kjvtOka+NeNosmSF9n6Oc23bu9dgXja9gagBYd3kEkD4d04z3e9UXUDHYQ7721g a8eJmWwpBQASakPp9jf8l9cRyuOxclwg5EAudRTBS74PQkW9slxea6U8rxKvqKLoGoVr qZRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=gBFI+SYRfB4bIEWDn/6MBy1SllCRtqBZq1IHY8wh+cM=; b=BpM7LGwTNA2r2BQYxFasXzGbFBFbnsCUeiu3Q48UHtdrcOw2IA7o9uy6EqMvas34Ci 5blVXTVbtvMY86HmyzmcDhgnBuECIEce/PbNfwOuNWM1j37WS2O6r/XV6lW9NS/rndyk hwW8MEz9sTW337i6IXAS92GoLB3yVUP2hqspBh9hjbAaVWvPmE3+uPK5wCCQyYRrD+p7 JYcD/JteGf5wRrCA+4Actp+LiiFdk1GFNH67eJFtZYbppJ6YWCEIoUKTxldT2jxmCO9E 9zTYNKJVLgVXpUbNvjDLf5eZ/HYmKn/f0svZyzRpM4ANSfKzGtH8x9CRcMjlmaJmXKxP hT8g== 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 n13si698059ejr.34.2019.09.26.02.34.30; Thu, 26 Sep 2019 02:34:53 -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 S2406989AbfIYNsY (ORCPT + 99 others); Wed, 25 Sep 2019 09:48:24 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:2485 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2405963AbfIYNsY (ORCPT ); Wed, 25 Sep 2019 09:48:24 -0400 Received: from DGGEMM406-HUB.china.huawei.com (unknown [172.30.72.57]) by Forcepoint Email with ESMTP id 953ADF9E6B6000EE6D6D; Wed, 25 Sep 2019 21:48:22 +0800 (CST) Received: from dggeme762-chm.china.huawei.com (10.3.19.108) by DGGEMM406-HUB.china.huawei.com (10.3.20.214) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 25 Sep 2019 21:48:22 +0800 Received: from architecture4 (10.140.130.215) by dggeme762-chm.china.huawei.com (10.3.19.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 25 Sep 2019 21:48:21 +0800 Date: Wed, 25 Sep 2019 21:47:06 +0800 From: Gao Xiang To: Chao Yu CC: , , Subject: Re: [f2fs-dev] [PATCH] f2fs: fix comment of f2fs_evict_inode Message-ID: <20190925134706.GA157912@architecture4> References: <20190925093050.118921-1-yuchao0@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20190925093050.118921-1-yuchao0@huawei.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [10.140.130.215] X-ClientProxiedBy: dggeme708-chm.china.huawei.com (10.1.199.104) To dggeme762-chm.china.huawei.com (10.3.19.108) X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chao, On Wed, Sep 25, 2019 at 05:30:50PM +0800, Chao Yu wrote: > evict() should be called once i_count is zero, rather than i_nlinke > is zero. > > Reported-by: Gao Xiang > Signed-off-by: Chao Yu > --- > fs/f2fs/inode.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c > index db4fec30c30d..8262f4a483d3 100644 > --- a/fs/f2fs/inode.c > +++ b/fs/f2fs/inode.c > @@ -632,7 +632,7 @@ int f2fs_write_inode(struct inode *inode, struct writeback_control *wbc) > } > > /* > - * Called at the last iput() if i_nlink is zero > + * Called at the last iput() if i_count is zero Yeah, I'd suggest taking some time to look at other inconsistent comments, it makes other folks confused and ask me with such-"strong" reason... Thanks, Gao Xiang > */ > void f2fs_evict_inode(struct inode *inode) > { > -- > 2.18.0.rc1 > > > > _______________________________________________ > Linux-f2fs-devel mailing list > Linux-f2fs-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel