Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp225489rdb; Tue, 19 Dec 2023 14:56:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IHmJJZOEokFKrh3WmIqPo3Cue8ggv6njq52n2z8NFKy9mX3eGEaCgoqUcfkO3yW2dQIr++c X-Received: by 2002:a05:620a:1268:b0:780:d918:93c2 with SMTP id b8-20020a05620a126800b00780d91893c2mr2518777qkl.15.1703026578798; Tue, 19 Dec 2023 14:56:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703026578; cv=none; d=google.com; s=arc-20160816; b=YhyzkdtyD80KfOlaLO7ZUQiN+WS2Gm3vCZT3HOjlaR5mjza6e+KLdhh7rUJYfPhB2Z SGmrfkLK0JnzhxuSLDByaOlv8b12mFCe2rESu8BFna7n2UlVT8HFpgYW2qZ7iJkLdPmw O77KaUafP6coGCHz+QTMicq7XZyD9D00KA00pZLsJT2T51AH8LvT9vtHUoDfbUOoAfW5 oXmEdur2KwJb24uRWuiKQt/ye+7GL+o0INm3Ohkzxgq7zs7fNH5Fz9d8cTNlHkw7bIZt 6TKANfQuHhFvoC9cP6ORC5A5u1ErWg7dfgWi995tbuLihnxkNnAksy5sHZ5FEkBaUqWb BLfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=hsJw39T9kLzgQ5bIf9Hg2WdIRhpd1/AAdToIOqp6/tY=; fh=TBQtGPAwpHWLLfGWNdLhxG8+7Hpfce/nym2WwbyQEuY=; b=tZ1TK1iGf8zdMOz51TYsmtGqd0B79fJjDYe6Vh/51J+9Qa1WbmL6Wc6Ev8GpsFFBTb VwMyjB8e7ULnfO5kEAYA+phiLv+zWO/oT2Stke+gCYZkRmJ7t1HRNI5bRaIz8p/5Vu9k RjsK/0sRrnZ7bjg89wnb0JsHVbnv2jT0Wp8/tuKnhR1xxUcsbUL0K70T2bRLoFUae3uK cR7YHeryIoRVd/lFaD4RWadPSHN889UH0MLogxt65S0T5InIT0zJ/KCredXt7gg8TLZp vrDxVzbqi+uh2wzSif3wNa8+pmkT+QKlovZi3eLFji8urnXHM2SiALRhUcyxbmKY8vMO jk3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RaB2a4GW; spf=pass (google.com: domain of linux-ext4+bounces-503-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-503-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id j17-20020a05620a289100b0077fa8dc6495si12715986qkp.455.2023.12.19.14.56.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 14:56:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-503-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RaB2a4GW; spf=pass (google.com: domain of linux-ext4+bounces-503-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-503-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8F8871C22069 for ; Tue, 19 Dec 2023 22:56:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 72F733D0B6; Tue, 19 Dec 2023 22:56:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RaB2a4GW" X-Original-To: linux-ext4@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 030903B195; Tue, 19 Dec 2023 22:56:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D4BFC433C7; Tue, 19 Dec 2023 22:56:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703026571; bh=1KsVpI26Wy0emSPFohmEhY9TLu8feCCZJtIibblPW04=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RaB2a4GW2tUetf4bOxFILnQyWYM33jV3DBMa354fhOl6Z3uVP5FGxm2oMt0P669Rx KhlHLCVk2012BYjCdKhL12/gdt/fFQDdNb4dUtKAlU1zTFYkfoeMen9/J7mLn/e4uy FSBd03r1T+IEST4c6dmc+ptQFP+bqhjRl3I3zHOnFzJIoKuXZoR2rNL2p4niND4jn9 8A/wpofnnPdEx6z50q8pG+HQGPxmf2jevYxgkGMB15dcPQ27JUExUqiZPOfH3+jTm1 mwPD3Yq80OQiodZMbXzAHQwfwuAq7wD6rUfIvt+l5wVw3HjrHiABX4zqUYRTRRUl20 Nd6BtGxeO7Wtw== Date: Tue, 19 Dec 2023 15:56:09 -0700 From: Eric Biggers To: Gabriel Krisman Bertazi Cc: viro@zeniv.linux.org.uk, jaegeuk@kernel.org, tytso@mit.edu, linux-f2fs-devel@lists.sourceforge.net, linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v2 4/8] libfs: Expose generic_ci_dentry_ops outside of libfs Message-ID: <20231219225609.GF38652@quark.localdomain> References: <20231215211608.6449-1-krisman@suse.de> <20231215211608.6449-5-krisman@suse.de> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231215211608.6449-5-krisman@suse.de> On Fri, Dec 15, 2023 at 04:16:04PM -0500, Gabriel Krisman Bertazi wrote: > In preparation to allow filesystems to set this through sb->s_d_op, > expose the symbol directly to the filesystems. > > Signed-off-by: Gabriel Krisman Bertazi > --- > fs/libfs.c | 2 +- > include/linux/fs.h | 1 + > 2 files changed, 2 insertions(+), 1 deletion(-) > > diff --git a/fs/libfs.c b/fs/libfs.c > index 52c944173e57..b8ecada3a5b2 100644 > --- a/fs/libfs.c > +++ b/fs/libfs.c > @@ -1765,7 +1765,7 @@ static int generic_ci_d_hash(const struct dentry *dentry, struct qstr *str) > return 0; > } > > -static const struct dentry_operations generic_ci_dentry_ops = { > +const struct dentry_operations generic_ci_dentry_ops = { > .d_hash = generic_ci_d_hash, > .d_compare = generic_ci_d_compare, This needs an EXPORT_SYMBOL_GPL(), since the filesystems that will use this can be loadable modules. - Eric