Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp484781pxu; Thu, 26 Nov 2020 03:58:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXW6AiqyNenOXikP9q4tFTMeIHA6sbzqVGjM5tmdJbDvH1OLL714tJwjbt30K0XPsg9Pea X-Received: by 2002:a17:906:8056:: with SMTP id x22mr2374534ejw.344.1606391908882; Thu, 26 Nov 2020 03:58:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606391908; cv=none; d=google.com; s=arc-20160816; b=dWGIfe8fW5WxMfcLZrByEUucgkZilFRuF+1oD/pBSR7VBXsZRnySOAeSNifc8I+jvd ZyWnOEeQlHlgVYEG3YIpTyZ9mT39L2cKS/UP/4QmjTLCZLyr+CHQlotInTnYeMK05grq PcQ99xbDlX9/sLkA/Q+Ya8xm5NVak7A/tuzxieWiWAVgsyKAWx08SFgIMItS5U8ce9O7 C6iILFVsXWH/gnazr1bcc0FuONdaCz3yr9gMIuKh0j6q05ZeALDUso1Zf2zFgus+ADiv eLxQfjSiYfqwlSalp2eYEmGzzjq7l2G07MMt3M1vGu6VC/Rr+JeLvv5XszimGqMNj94U TwUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=b+Qtiv1OGy9nZToVjkrfZbcUWIhAQ+ilIFh2RlnwtU0=; b=jpL7C/YiDxc9JXLXzjkEIkadIWW0ghZQh4tRqM3M5h+07H50mssPHNSN1cOWUnTJSI k4ob8o16j7F6d8g86BE455hpyQBtsnMdFgFYRBcD/HslTYqPpPjhzBUCIqVmO9UE2H7B +4BuThNk/7Ir1SfwBGbPDhmSoeRIO/YvtTQmUWU7piVzPVslr3Hyu1sE1j+n+P9DfWvu DkmGUAUGGRzSOtWmBoH9DOaXmvgxpMyX6qrvhADngm71X5GznC1tkg35Be3OpWTIF2Sv dci/s5pcMVNjiGQXQEIW1g4bcwMlVnm4DUS6kjHHUc3jY6I6fjqRrP6WmBzRaatH9BwC Lkfg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id re10si2197512ejb.754.2020.11.26.03.58.06; Thu, 26 Nov 2020 03:58:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388162AbgKZKpF (ORCPT + 99 others); Thu, 26 Nov 2020 05:45:05 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:7738 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730896AbgKZKpE (ORCPT ); Thu, 26 Nov 2020 05:45:04 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4ChZBq1KFKzkgRv; Thu, 26 Nov 2020 18:44:35 +0800 (CST) Received: from [10.65.58.147] (10.65.58.147) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Thu, 26 Nov 2020 18:44:55 +0800 Subject: Re: [PATCH] fs: export vfs_stat() and vfs_fstatat() To: Christoph Hellwig References: <1606374948-38713-1-git-send-email-yangyicong@hisilicon.com> <20201126071848.GA17990@lst.de> <696f0e06-4f4d-0a61-6e13-f5af433594bf@hisilicon.com> <20201126091537.GA21957@lst.de> <79b19660-f418-f5ac-943c-bc49a88eb949@hisilicon.com> <20201126095004.GA23930@lst.de> CC: , , , , From: Yicong Yang Message-ID: <6178eb60-7a84-4939-ddbf-107b16d27a42@hisilicon.com> Date: Thu, 26 Nov 2020 18:44:57 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <20201126095004.GA23930@lst.de> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.65.58.147] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/11/26 17:50, Christoph Hellwig wrote: > On Thu, Nov 26, 2020 at 05:48:25PM +0800, Yicong Yang wrote: >> Sorry for not describing the issues I met correctly in the commit message. >> Actually we're using inline function vfs_stat() for getting the >> attributes, which calls vfs_fstatat(): > Again, there generally isn't much need to look at the stat data > for an in-kernel caller. But without you submitting the code I can't > really help you anyway. > . sure. we'll check to see whether it's necessary or there is other way. many thanks!