Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1052286pxu; Thu, 26 Nov 2020 21:12:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGBaKzwHYAsDrhmj5c+tJ/LAZsn3Cb4ZnPUdSL4lphzUcA2SO98XBRsGGDixfniFVsv5qv X-Received: by 2002:aa7:c6c3:: with SMTP id b3mr5956038eds.84.1606453938336; Thu, 26 Nov 2020 21:12:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606453938; cv=none; d=google.com; s=arc-20160816; b=cPRQwC9Vy7AwkbE8hmBZWBmrPP4fETEkvio2S44he1pjr+uaAnBPEcCHwjytEG/j9r RoiwLMT3BpO5A95oacVfUvmF4jvFCsQgu35UxBJjoDvKtws40J32IkMxLkyZFg/8sjmU b8Cwz/AQ1nf8zPDjD0YjpPwVyd/WH0vnBsfCYigDkfzxGGc/HDaPTASQS0uwUiFBMd5W N8zivi8QQNzC7QS5w5LK9VxTrBtCj1DoTtc97k+fptwyZFgln+8J5iRvhKAzVzhRY+v+ 6Kq8TX8SE87L1/f5j/4s5MS9pe3g+VEJrS2Ik7CdJ/fC9w532W63NRCUVzfnXZ3++XVF qXqg== 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=K49NGmBU1H65hN6FRq/2J9PnWp3xHITngGTZ/vUJr/M=; b=jtTh+cNh0N5jh+m7ktkEki3CElwP4cYXOXCxzZREONWmR+dKAborb2ZzNcnyYCW52a sJP9nIQ4staTtffvgioFuoIcQdI/uR88ub2C58ODqILQpd63NbruUnTRaBBLgxdhv+Gg ZXv52Ig7YxzSrZQBYJE2RAg9DRLKUpFDtHgQkyV4k9thFzw2fvEm25XchpQRi3rGR24N lhzzuZ2CO/wsemxDhIEojgHruqk0DfOqzaKSFHksAQFLFopLOfCXlkMVUOgrZUOSoPYG sT3EyTPyo1VVlZ49zpj/oH7xsVcT0pneXbRLf/Z9Yzkyl9pazsBHhwiftxm3Cz9RSj3q yNOg== 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 k7si4229504edk.251.2020.11.26.21.11.30; Thu, 26 Nov 2020 21:12:18 -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 S2389131AbgKZJIf (ORCPT + 99 others); Thu, 26 Nov 2020 04:08:35 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:8124 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731934AbgKZJId (ORCPT ); Thu, 26 Nov 2020 04:08:33 -0500 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4ChX3X0ynYz15S2C; Thu, 26 Nov 2020 17:08:08 +0800 (CST) Received: from [10.65.58.147] (10.65.58.147) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Thu, 26 Nov 2020 17:08:22 +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> CC: , , , , From: Yicong Yang Message-ID: <696f0e06-4f4d-0a61-6e13-f5af433594bf@hisilicon.com> Date: Thu, 26 Nov 2020 17:08:26 +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: <20201126071848.GA17990@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 Hi Christoph, On 2020/11/26 15:18, Christoph Hellwig wrote: > On Thu, Nov 26, 2020 at 03:15:48PM +0800, Yicong Yang wrote: >> The public function vfs_stat() and vfs_fstatat() are >> unexported after moving out of line in >> commit 09f1bde4017e ("fs: move vfs_fstatat out of line"), >> which will prevent the using in kernel modules. >> So make them exported. > And why would you want to use them in kernel module? Please explain > that in the patch that exports them, and please send that patch in the > same series as the patches adding the users. we're using it in the modules for testing our crypto driver on our CI system. is it mandatory to upstream it if we want to use this function? Thanks, Yicong > . >