From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751636AbdJTAl0 (ORCPT ); Thu, 19 Oct 2017 20:41:26 -0400 Received: from mx2.suse.de ([195.135.220.15]:46292 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751191AbdJTAlZ (ORCPT ); Thu, 19 Oct 2017 20:41:25 -0400 From: NeilBrown To: Al Viro Date: Fri, 20 Oct 2017 11:41:17 +1100 Cc: lkml Subject: Re: [VFS PATCH] constify more dcache.h inlined helpers. In-Reply-To: <8760e6veh6.fsf@notabene.neil.brown.name> References: <8760e6veh6.fsf@notabene.neil.brown.name> Message-ID: <87h8uufy6q.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 On Wed, Aug 02 2017, NeilBrown wrote: > 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 Ping ... should I be sending this somewhere else? Is there a problem with it? 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 aae1cdb76851..66ca42b1935b 100644 > --- a/include/linux/dcache.h > +++ b/include/linux/dcache.h > @@ -358,7 +358,7 @@ static inline void dont_mount(struct dentry *dentry) >=20=20 > extern void __d_lookup_done(struct dentry *); >=20=20 > -static 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 = dentry *dentry) > return dentry->d_inode !=3D NULL; > } >=20=20 > -static 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); > } > --=20 > 2.14.0.rc0.dirty --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAlnpRi8ACgkQOeye3VZi gblqYQ/6Ast+MvkEWhZAmJyuto9nea2KuLdbNPbtb6X5f8h4KnCHm3QhwWuMOYXF 6Iwyp4KddNu4vWd9R+54DaPaZ86Wgjmg2tHTmS/1Yi9kKaW5uEe3f/r+cmDP83xh UghIUOJ7pPAZzjeYeFd53wLecrOicKHdwnR3hopqWhcUDE0RjiVAyDR8nnxMLBrZ erMLbjZPUaKBHIlinipHtrBtkXfNW0rX2tNXbgc5Vxd6QhWLUxBXmfiRXfdLGqFw lGBs3yqefRRvks1EJgFs1bGJuGNnTNinTGUNzXHLL3lGpIJi/ugtieV1xN0XZBvO 2PMEZCOjTYJ1+Utd7lGADhGdAhfQ/aFh/ZO9Fp9RvdAhqtXTmYFVjTq3b7UbN5Gn XNoVUSu9WRqH9VUwz8hUInPVqwsIZPOvVUBPJ+EBzetY+9fMODhvpmSTs8BsIwIS IEfRPj0Vdg4SDVxoqoJKbMaiat4bxRWl7ONQyVJNb16ZdH2jsVfsSAG+O+kkgjVE Yo+LvfK7/kMAExpmfvGRddEuK6/UJtc7Ufy0uQlSnSfOyQgSLPDopJP640lTl7ny rOiRn4Fo9tn3v01GMZKVDQnQiZ6/9RMm1JPZYuyJs0ocPtX9b7k0JzE0CAsXh3O+ rruSKmmUkveS0dKvcOjBLlMW3ktXmGzZAU1j+fuj6vw4F98WVr8= =4oBu -----END PGP SIGNATURE----- --=-=-=--