Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1852532ybn; Thu, 26 Sep 2019 03:13:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLTwq8vJWh5OrxGs2ETGCdMY9TU5e0E8pvt7BNFHfw2P46Jp+W+VbTGj6qzGB5v7t6s+P5 X-Received: by 2002:a50:ce53:: with SMTP id k19mr2665529edj.2.1569492814793; Thu, 26 Sep 2019 03:13:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569492814; cv=none; d=google.com; s=arc-20160816; b=U/s7f76tAn7q6KckyAyrfemSvL5slZzI64lnzQBEBWL5WmlZTWkgyxGnz/rcGtFJ0i ZqcFtGISvDXCEKXkdb4AnmQ+3LCE3V8dC++Xx+qfNH/xltYsAE9fY3rJFcdAnoHbzHW+ w5155x1PZoJ+UmjZvb54o1pPmmJG4lkPu44BMuMY7CaYpgkSYNT0oH/tRUKWI6LgMBvj 3+zOvMczyaRL0PxQX+Y2tQr20oLb0hio2dhx+vt4Vo6sYcQsidMfJrLO+TRKu+hwFH4N YbxwtqCnSTOOck4C4MC5ewaXt2GFG9HjK8en/YcN345IM9o1HlCEpaoIZNIwkLByi2mA bHYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=3wUrqrTW62iTqvTb7ukSGpNHlEeDemvHqIo+BU0BCVQ=; b=uZLGz1FCzXm/9c5K83EMpYN1DPOsCbwbJdyKZrL7Oq+Azj/EhTbzbBKjCXJqlqS/E8 kycxNQK0hZDdFj8ZtsE4T67cHBzVo/eWvb5ZL3TiIgy2qLDRvvgOLs0JIdgsyGJXCdDJ LzIj8cmetwuEWHTz6oRysufl6IG+ajRGnBFtIbFi05ne3mq4/GoEqYrZW9p5Rt1hHgxd Y/i0Ll6H/JKtCohohU64MSkQYlZy0X6opI6Pm54BSaV0cRUMMrKCMazoUFJu8E3HkbQZ hHni7w+0bVK1i/KyBBMYoMQQjLlDwuUlBq7e6UPg2hJv47mKTrQRx6rDMLOqhXtv3IVA B91g== 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 p1si980280eda.406.2019.09.26.03.13.11; Thu, 26 Sep 2019 03:13:34 -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 S1728169AbfIZBEW (ORCPT + 99 others); Wed, 25 Sep 2019 21:04:22 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:45980 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725768AbfIZBEW (ORCPT ); Wed, 25 Sep 2019 21:04:22 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id C9C7AF081E2BB4CD68B6; Thu, 26 Sep 2019 09:04:19 +0800 (CST) Received: from [10.134.22.195] (10.134.22.195) by smtp.huawei.com (10.3.19.214) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 26 Sep 2019 09:04:12 +0800 Subject: Re: [f2fs-dev] [PATCH] f2fs: fix comment of f2fs_evict_inode To: Gao Xiang CC: , , References: <20190925093050.118921-1-yuchao0@huawei.com> <20190925134706.GA157912@architecture4> From: Chao Yu Message-ID: <4f1a7400-04d3-ff1e-3ea0-cf5b95af972c@huawei.com> Date: Thu, 26 Sep 2019 09:04:11 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20190925134706.GA157912@architecture4> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.134.22.195] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/9/25 21:47, Gao Xiang wrote: > 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... Xiang, I'm looking into it, will fix those inconsistent comments in another patch, please wait a while. ;) Thanks, > > 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 > . >