From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751948AbdHBDYr (ORCPT ); Tue, 1 Aug 2017 23:24:47 -0400 Received: from mx2.suse.de ([195.135.220.15]:55126 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751659AbdHBDYq (ORCPT ); Tue, 1 Aug 2017 23:24:46 -0400 From: NeilBrown To: Al Viro Date: Wed, 02 Aug 2017 13:24:37 +1000 Cc: lkml Subject: [VFS PATCH] constify more dcache.h inlined helpers. Message-ID: <8760e6veh6.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 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-- 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 aae1cdb76851..66ca42b1935b 100644 =2D-- a/include/linux/dcache.h +++ b/include/linux/dcache.h @@ -358,7 +358,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; } @@ -486,7 +486,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----- iQIzBAEBCAAdFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAlmBRfcACgkQOeye3VZi gblW/w/+OfgBLSr2LoZCQxFnpeToY34+2g/oRaTIHVr8T6CqWFw1Zr8G6wYFzQGM E1uiv9GnWJccSelSqZ8Fb3V8T8dapi314ya9ZUa++HwcM+szimXUGx/jyJBaFgRn xUYN1SFyDsrjtdTRGNedogOIpZTGL5aJJX9vtlORMNeX1YK+6ZGdUWxzG/A19F7A XsL2H3N3vR0tHoHADghPGsY3Uz/dhev7uXIpeAYa3Rw+tUm3s6mPoEozdxIeCLuX 7MHEA0wQfnkpiM38W8LE410XOtSP9zPkAggE4gW0cuahVPsjhmKbHEQoX/Mihm2H uOI/6q8M9dJNY5e9XkiNEo/9aO4awaWtHkJ5oVq0NgkYhxCdfPQs7HlzeaUxOpEh ctxvhBJdfqc904U5s4ACZ/oj5XhQ260zC9Cwp/b8vjFzeSu7cKsb4KhnrrHKw6mb z68VQA/bmr1U/OOGAdd/TbF/Kw9vfuFs6D62E1cMNeNAa4+w70bQRAbgLoEtkKd/ wdaM2cVoBSj+60CvA6yfMwpFTe8hcaWH5dRj0A4qYgAEyZ+h7RaUB/PurfJI65q4 IXPheYVId4kL5xQW6ZMfKS/pn7naYwv1sDTYGfoCm9m6dzkeOw1Hu9fa0nH7gWYT oIkF4ACcOFf9QQiQuOWIgPksNxnuiw8OtJ1mPnwSmnRxdAIWG84= =k4ov -----END PGP SIGNATURE----- --=-=-=--