Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp456240pxu; Thu, 26 Nov 2020 03:09:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtGzY3NXmQuJp9WIeyRknfJ35hB59XEs9knVDppIJFnvMsd9hphM9ddpt43Q7lwlbbEyBy X-Received: by 2002:a17:906:60c8:: with SMTP id f8mr2151073ejk.14.1606388969079; Thu, 26 Nov 2020 03:09:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606388969; cv=none; d=google.com; s=arc-20160816; b=JViFIPZMxKOleip+u3un7TU6qVKQLl6tXKSrh7B0dBp4TJ0q5gv/5E9GWwfgq0U7/e b6MJbCjeYtuNXQmkG3xQ/CKwyeuPkn2/r9Db59ZhAzts/0mijpPkAwsmUamG/+Dp3UJL Ev0PcCHW9iV+uIsAWM0Mz17bsKrnQ7XNb9TL1dPjK8r+s3mLSCHHkYpq+AoWwvCrC3FN Af6VTKFBIITlCuh19W02MZejbUmW+sYLKmYBx1uYYyHoJLct2OM7zYfxo0zRzBGj4CL5 vHyedXjmpj2WKIXuNUJ0Iw3K7m6FkOrpT9NmUPH4P291qBdTY9bQ4iJm6cTU2s3UI7AQ fHCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=D9CuqnLA1iTyUYaizWP6bjpxjW9Lzkqpsfp/2OU3n9g=; b=o7pcQO+kj0ujFp60DY7c0XySSqr4hQ/WBDwkP4EQDI0kNBtTq8R1WvL/PEn9sDPt7k V9q1fBt3Gr7rQknWRY+M+pyiNxaHNemjsejeF80MlcPSi8LjjF+n59arKy36go7tgOOU XFbpENPaQnMb2AAb3Ttrp26sw48Hw6l09uRfcZRAKpwl62mpTmfUsZwFjVZKuWlNP3qs muvsiuLMnIHhhusOrlPOS12M0UP1sY+Y9sFVCeYaKMTBTfqoVVfR2sFDkIC41mlfjHpA 1biJpP3l4tva1ixX0cShCUDEm1OgUB3uw3ks/ALFWuMTP17sC4gsXk68iSbWvQCr38ae i8Gg== 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 e14si2965323edj.598.2020.11.26.03.09.06; Thu, 26 Nov 2020 03:09:29 -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 S2389180AbgKZJPl (ORCPT + 99 others); Thu, 26 Nov 2020 04:15:41 -0500 Received: from verein.lst.de ([213.95.11.211]:33584 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389172AbgKZJPl (ORCPT ); Thu, 26 Nov 2020 04:15:41 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id B4FAE68BEB; Thu, 26 Nov 2020 10:15:37 +0100 (CET) Date: Thu, 26 Nov 2020 10:15:37 +0100 From: Christoph Hellwig To: Yicong Yang Cc: Christoph Hellwig , viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, prime.zeng@huawei.com, linuxarm@huawei.com Subject: Re: [PATCH] fs: export vfs_stat() and vfs_fstatat() Message-ID: <20201126091537.GA21957@lst.de> References: <1606374948-38713-1-git-send-email-yangyicong@hisilicon.com> <20201126071848.GA17990@lst.de> <696f0e06-4f4d-0a61-6e13-f5af433594bf@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <696f0e06-4f4d-0a61-6e13-f5af433594bf@hisilicon.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 26, 2020 at 05:08:26PM +0800, Yicong Yang wrote: > > 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? Yes. And chances are that you do not actaully need these functions either, but to suggest a better placement I need to actually see the code.