Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp683510pxf; Wed, 24 Mar 2021 13:17:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+VR/iQ3vQSBJMPB/dU1HTzBMhIhLPobMJ5IULkg8sVJ2q9xO7983/R7ZPWYVOwRBS027r X-Received: by 2002:a05:6402:614:: with SMTP id n20mr5362825edv.58.1616617058722; Wed, 24 Mar 2021 13:17:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616617058; cv=none; d=google.com; s=arc-20160816; b=JvsbKpKhUxfTv94vQjmS+2w9VDtorf5o2h1q857iAeJLWdoUKbM2tKElGYoGESddmV 124M5wCRlTdr93b4Wvxgxi/T9LG1hGhq7ozfbpFSmXSxneMVryCw0+jkbVN8cMz2tLV2 C8Wx0a380wkTxXj+CJMVFhQWMqp1VtWCnBcP+qi/lulocwf1wnXeZTyQngkw2gxTwW20 T6t/m9NeILPRMMerjwfUi0Gv34MYYprgWV59yAcua1BR0h0cRkVWzbQYDX4ptlxAcQCr 7Zt9FINK14R/W3z8A0qjF6xFOfF36auWECHc/eBoFCaE90+EWmrOx00Og608aNDDQyJj WZMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=jneCOWtEwDe2cSQaReHjCImaMa6iaAJGm5QPCpQESSY=; b=nfY9hjRvw+ghgBj6mZEpDoLgXLUXzc8Mw+GqNf3szRWVD7kpD3K/IjatmUOvAMkypV vdO1w/TS/ZFaErFSygAv0SVD1LXaZmCjWd1zGG1uvVrLxl4KtJWF76RZRGF6U6gLmv7/ JRfko3YU7lDD6LxJAbmIyKhUp1nmR2ISNzV8QZBXY+Heckq39KUvC08VsCtFqogoUNbB BkbzMHlg79A37JCK5DYRlyol0ULpx2kokbnwqiYohiPGzZtERLMNBjzUM6Nuc2SSNDlS OqR9MyTuUM8AXkfYXp7Pj1BUmYT3dczThGtya27TXDPO3aaJ8Wls8Sg8eblUZ4G0JH/d yGsA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f9si2699886ejk.446.2021.03.24.13.17.14; Wed, 24 Mar 2021 13:17:38 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238179AbhCXUKT (ORCPT + 99 others); Wed, 24 Mar 2021 16:10:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238174AbhCXUJ6 (ORCPT ); Wed, 24 Mar 2021 16:09:58 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07F01C061763; Wed, 24 Mar 2021 13:09:58 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: tonyk) with ESMTPSA id 8EEA71F45E6A Subject: Re: [RFC PATCH 1/4] Revert "libfs: unexport generic_ci_d_compare() and generic_ci_d_hash()" To: Matthew Wilcox Cc: Hugh Dickins , Andrew Morton , Alexander Viro , krisman@collabora.com, smcv@collabora.com, kernel@collabora.com, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Rosenberg References: <20210323195941.69720-1-andrealmeid@collabora.com> <20210323195941.69720-2-andrealmeid@collabora.com> <20210323201530.GL1719932@casper.infradead.org> From: =?UTF-8?Q?Andr=c3=a9_Almeida?= Message-ID: <5c20d261-eef2-aecc-8f1e-58fb5dbfcd72@collabora.com> Date: Wed, 24 Mar 2021 17:09:48 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210323201530.GL1719932@casper.infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Matthew, Às 17:15 de 23/03/21, Matthew Wilcox escreveu: > On Tue, Mar 23, 2021 at 04:59:38PM -0300, André Almeida wrote: >> This reverts commit 794c43f716845e2d48ce195ed5c4179a4e05ce5f. >> >> For implementing casefolding support at tmpfs, it needs to set dentry >> operations at superblock level, given that tmpfs has no support for >> fscrypt and we don't need to set operations on a per-dentry basis. >> Revert this commit so we can access those exported function from tmpfs >> code. > > But tmpfs / shmem are Kconfig bools, not tristate. They can't be built > as modules, so there's no need to export the symbols. > >> +#ifdef CONFIG_UNICODE >> +extern int generic_ci_d_hash(const struct dentry *dentry, struct qstr *str); >> +extern int generic_ci_d_compare(const struct dentry *dentry, unsigned int len, >> + const char *str, const struct qstr *name); >> +#endif > > There's no need for the ifdef (it only causes unnecessary rebuilds) and > the 'extern' keyword is also unwelcome. > Thank you. Instead of reverting the commit, I'll do a new commit doing this in a properly way.