Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp975906rwi; Mon, 31 Oct 2022 09:41:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5vUUgYjNQRPt2hyca6EW6lefbb7GimMCvr3reQozQAHrQSdy/SSmVkdOMKRhdNFzwmVgwn X-Received: by 2002:a17:906:da86:b0:740:7120:c6e6 with SMTP id xh6-20020a170906da8600b007407120c6e6mr13857267ejb.44.1667234461482; Mon, 31 Oct 2022 09:41:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667234461; cv=none; d=google.com; s=arc-20160816; b=JUhf+900lkVM4ftGE5CxVa59462Kk3d8Xah/+1KHjzZ5r77W4wzTtm9W2JpTqyQWQ3 xpa8BHf3Vcu73OIcN+/5pkQBI1wVxdK37bje74XpGYThg0+LiexnKSjzQ96OmPf/DqYu NEpVt+GSdWnKYxbF+5tj0zEZzJB5gMoWmq4gaiUT2K9Zr+DfXpUp/0FobjDtlsmiEaZl CFXdlXNku3zeb+XxrUAbKX+YRXmYXy3Nh5BcXtbZKTH9W5qtCumFuRXA/ApE2kwYqS9u 4A9CsD3iYK/BmUf+SMzKc7v0IcPzKLUst+FyiLWwgluKOID+k+hnmxScq0odKE5Oa5Lr Dgcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=Ll8zSW/V3aUK21MexxVXQ9Ac8gd39eTMfBS6wgTWpi8=; b=BR0+hdYF12ppwKM4jhqVpapz5GKxRIuI5c64W1Myan7rmVECR+ih877vPzHFeKktpZ Wgn+n4ch8M6piw8B5tAfoYUT5QVrxdFDCF5uSkKF5Uj4gPOsIiEdRqb5YRs17SwxavI8 7Omc3w4sBjzU6dGpPe/tyEVtX8eOVct5xiRJFUJOjCpCItt3epzr9k85mbZeSqGy6JS2 UPEjbjwI7N7iXPwiFi8HvLeTguWjQsh8RVMHby8GEzEX7SMwntUcDlQCn8tgCpX7wtiJ Gzq/uxXcPWiW+hgBm+3wsAPq2rWYbAkIyua+hagEF798gzw5TE5HpzlOmbAnbjAiuR6R W6xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="V/9uGivH"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qf16-20020a1709077f1000b0078df24be362si8884194ejc.496.2022.10.31.09.40.36; Mon, 31 Oct 2022 09:41:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="V/9uGivH"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231382AbiJaQeG (ORCPT + 99 others); Mon, 31 Oct 2022 12:34:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231821AbiJaQeE (ORCPT ); Mon, 31 Oct 2022 12:34:04 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D732DBA for ; Mon, 31 Oct 2022 09:34:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 95F80B818EB for ; Mon, 31 Oct 2022 16:34:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D25E6C433C1; Mon, 31 Oct 2022 16:33:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667234039; bh=SxG5812bo2s9MBwlD+mj2KQQLrQ1jNpLaJVTtMhSU9U=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=V/9uGivHIy8wQKELqEMYMjRkodRWj8wYmHoFNVK7BvhlkX5V/Wt/UdXV2AVXdheyB eMLoT27MZJgGPszsrRqYcvLtUrTw69Y0qH6tx5arfSOuNtB8ZaQet3+nvslN8FtAFH cJKi2ZTEbq0GpvuxKf2+kQmk3LH/SD/68L3PBHwjzr2lZBI9sgp1KUUUi0YDa3bLSn m0N69fmzWDEufFyJEIrJmD5HmMknJ6uJXMtkSlJ1IINwn08dbwRXcGQNPyzA3+3Z6i YsSeneRO7Le5Yq8piT6PuwZ/Y1XGL2vzZB5lwadLC/2uiI+2LiaaOR14IszG0etReO vS2Qwx2F78DrA== Message-ID: Subject: Re: [PATCH v7 08/14] NFSD: Update file_hashtbl() helpers From: Jeff Layton To: Chuck Lever , linux-nfs@vger.kernel.org Cc: neilb@suse.de Date: Mon, 31 Oct 2022 12:33:57 -0400 In-Reply-To: <166696844244.106044.9547058764290901363.stgit@klimt.1015granger.net> References: <166696812922.106044.679812521105874329.stgit@klimt.1015granger.net> <166696844244.106044.9547058764290901363.stgit@klimt.1015granger.net> Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) MIME-Version: 1.0 X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Fri, 2022-10-28 at 10:47 -0400, Chuck Lever wrote: > Enable callers to use const pointers for type safety. >=20 > Signed-off-by: Chuck Lever > Reviewed-by: NeilBrown > --- > fs/nfsd/nfs4state.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c > index 2e6e1ee096b5..60f1aa2c5442 100644 > --- a/fs/nfsd/nfs4state.c > +++ b/fs/nfsd/nfs4state.c > @@ -710,7 +710,7 @@ static unsigned int ownerstr_hashval(struct xdr_netob= j *ownername) > #define FILE_HASH_BITS 8 > #define FILE_HASH_SIZE (1 << FILE_HASH_BITS) > =20 > -static unsigned int file_hashval(struct svc_fh *fh) > +static unsigned int file_hashval(const struct svc_fh *fh) > { > struct inode *inode =3D d_inode(fh->fh_dentry); > =20 > @@ -4671,7 +4671,7 @@ move_to_close_lru(struct nfs4_ol_stateid *s, struct= net *net) > =20 > /* search file_hashtbl[] for file */ > static struct nfs4_file * > -find_file_locked(struct svc_fh *fh, unsigned int hashval) > +find_file_locked(const struct svc_fh *fh, unsigned int hashval) > { > struct nfs4_file *fp; > =20 >=20 >=20 Reviewed-by: Jeff Layton