Received: by 10.223.176.5 with SMTP id f5csp518624wra; Fri, 2 Feb 2018 01:34:25 -0800 (PST) X-Google-Smtp-Source: AH8x227Uf8+6z1+XscUlLy7m59kj1/ARvrL4LMeiinFW1IKA0CnIH0L8+8VE6He2EdS+KEII/pzP X-Received: by 2002:a17:902:b2c2:: with SMTP id x2-v6mr4158226plw.414.1517564065799; Fri, 02 Feb 2018 01:34:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517564065; cv=none; d=google.com; s=arc-20160816; b=qH2vTa8kP8fC+M48AEnZyawopSHVylkQ/unlE1Tf1rIsJeIBBdflGB2HAchjLCItpt bxbP+Vp/9YLwJTEk45+eYuLMm73JlFu/MPa1zLTicmw6IqEWUCfT+AJjXHijq/Z/FM5D b1Lk5iv+TkLM1A1AMjXu7bmEnA3yZqVCHAtBeLreVIxF+ZazW2kuwfnadVxGcHGFeZfZ WSWXSUGtO9ayaTumEYoPc88CAeTn9lRVPSStCVFAaw8KvolMghmPNDUZfGYYYoaxX7O5 AV0SWBdRkQ3Zf/bm4wMAPIokXGduj3KRnziwlhdUsfXzOd2Ff5R7QXX8cxgzR4IKf/E0 PW6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:subject:cc:date :to:from:arc-authentication-results; bh=6YfWbmYFgLYx3KrM7h+bI3t3tLeUb0P/kEBNH+hXnfQ=; b=eGnlDtZdxaQFFPcqtox3GrvdHqoDtWCnbaGtchP2TQPh9wo4zRJ/BZ+DcQXwB+Qu7V +VuFAPtxpXUrlEM1Nn14P3TP/hZmAStj+wBVPmvjaHZajsrnCzWUngH/UnsNxDLdHgi6 QIsStjGGgS0cyqY5q5cHLSY4VWl6YqjUWI1xqRPi+67sJaqD/C+VgjLukdvlWRWecHUe 2nvjbr9/8aHF7RHub+C4SRvhRACwd6xfXx2kU6vSRgEnCZdnPEF5nHhfgw0Mm+EE+U4Q DfHQXktxibDawFrBI82AHCVsMGJXgIRidPc9ER31PRKuQKr0+KMDNTp2+C8Q/4FldNup +wlQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v17si1166540pgb.353.2018.02.02.01.34.11; Fri, 02 Feb 2018 01:34:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751923AbeBBJd0 (ORCPT + 99 others); Fri, 2 Feb 2018 04:33:26 -0500 Received: from mx2.suse.de ([195.135.220.15]:41420 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751707AbeBBJck (ORCPT ); Fri, 2 Feb 2018 04:32:40 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 66BC0ADC3; Fri, 2 Feb 2018 09:32:26 +0000 (UTC) From: NeilBrown To: Al Viro Date: Fri, 02 Feb 2018 09:13:42 +1100 Cc: torvalds@linux-foundation.org, lkml Subject: [PATCH/resend] constify more dcache.h inlined helpers. Message-ID: <87r2q42wa1.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Many of the inlines in dcache.h were changed to accept const struct pointers in commit f0d3b3ded999 ("constify dcache.c inlined helpers where possible"). This patch allows 'const' in a couple that were added since then. Signed-off-by: NeilBrown =2D-- Hi Al, I still don't see this in your tree, despite you saying on Oct 20th that it had been applied. So I thought it might be a good time to resend. Thanks, NeilBrown include/linux/dcache.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/dcache.h b/include/linux/dcache.h index 65cd8ab60b7a..5b336f9faf01 100644 =2D-- a/include/linux/dcache.h +++ b/include/linux/dcache.h @@ -359,7 +359,7 @@ static inline void dont_mount(struct dentry *dentry) =20 extern void __d_lookup_done(struct dentry *); =20 =2Dstatic inline int d_in_lookup(struct dentry *dentry) +static inline int d_in_lookup(const struct dentry *dentry) { return dentry->d_flags & DCACHE_PAR_LOOKUP; } @@ -487,7 +487,7 @@ static inline bool d_really_is_positive(const struct de= ntry *dentry) return dentry->d_inode !=3D NULL; } =20 =2Dstatic inline int simple_positive(struct dentry *dentry) +static inline int simple_positive(const struct dentry *dentry) { return d_really_is_positive(dentry) && !d_unhashed(dentry); } =2D-=20 2.14.0.rc0.dirty --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAlpzkRYACgkQOeye3VZi gblPIxAAuEV17To4x7JJK91ZTeoOUkc+s/jPrPx+n8t0ieKLvAv0M0QhtqRLRKjt 4jepYoQ+5boDyseM0eGaK13xtNv2da02+3xLa2hYWUOeICU6AbJloVlStBQwfYSs CV6p6WVhdrd3Y2CjrFACDzczs33tUFTTbddXg+VGKlOLQL2JCkgMfjtIP/m7nsfv uANkr0NpGyWG8Z6NMCbiFXPNMETPQNsCYFDz/cDe9OJyfhKmpPJ+2uohLanPIBge m1tHMB6VIfl+0l2dJyhPX+vIVNpzGKL9gvQx6Gsf6f8pK8hcPN+B81FNgKQjbx1q wRg7Id9tlM1LSU7+Gt6QcLLHlybaFxe50ZGnDjMkC2EDF28AClg5F3JL/IqraN9y Q+r1YrYb9Mjx6QHB/7Fsvvne42xpMFeCs+RmHoMdSIn4tjvtaqspo85F8i9+2yFT heYaHMwGxzYnn5w0QBqfla2xweE+GztFRyNR7znYfyz2BuAWFg7FHgRSUcXL/4yz SyPtelyAKKBrfLJysXka3/jLp7vU3OTkBXVyW+dUs8R5P6rY02VhbHpmp7l9WPHz /H3IhowTeUMkvDoi24qMcTr3h2uXWwWbiXs8A733j0AKMDo2jWE7+sKnIiFrhH4n eQ40JvOiK0QfrUbROpSRxSkmYNyXQdUoZ7iB8uGI8NosNvI6azw= =SALL -----END PGP SIGNATURE----- --=-=-=--