public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <djwong@kernel.org>
To: Christoph Hellwig <hch@infradead.org>
Cc: Dave Chinner <dchinner@redhat.com>,
	linux-xfs@vger.kernel.org, david@fromorbit.com,
	allison.henderson@oracle.com
Subject: Re: [PATCH 1/5] xfs: convert XFS_IFORK_PTR to a static inline helper
Date: Mon, 11 Jul 2022 18:20:40 -0700	[thread overview]
Message-ID: <YszMaH4fLe0S6Jp7@magnolia> (raw)
In-Reply-To: <Ysu0iYgkaGdg6oVJ@infradead.org>

On Sun, Jul 10, 2022 at 10:26:33PM -0700, Christoph Hellwig wrote:
> On Sat, Jul 09, 2022 at 03:48:42PM -0700, Darrick J. Wong wrote:
> > From: Darrick J. Wong <djwong@kernel.org>
> > 
> > We're about to make this logic do a bit more, so convert the macro to a
> > static inline function for better typechecking and fewer shouty macros.
> > No functional changes here.
> 
> No arguments about the inline which is always a good idea.  But is
> there much of a point in changing the naming?  The old one nicely
> sticks out just like XFS_I and VFS_I have been inline functions for
> a long time.

I personally am not that bothered by shouty function names, but Dave
has asked for shout-reduction in the past, so every time I convert
something I also change the case.

AFAIK it /is/ sort of a C custom that macros get loud names and
functions do not so that you ALWAYS KNOW, erm, when you're dealing with
a macro that could rain bad coding conventions down on your head.

--D

  reply	other threads:[~2022-07-12  1:20 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-09 22:48 [PATCHSET v2 0/5] xfs: make attr forks permanent Darrick J. Wong
2022-07-09 22:48 ` [PATCH 1/5] xfs: convert XFS_IFORK_PTR to a static inline helper Darrick J. Wong
2022-07-11  5:26   ` Christoph Hellwig
2022-07-12  1:20     ` Darrick J. Wong [this message]
2022-07-12  4:53       ` Christoph Hellwig
2022-07-12  6:25         ` Dave Chinner
2022-07-09 22:48 ` [PATCH 2/5] xfs: make inode attribute forks a permanent part of struct xfs_inode Darrick J. Wong
2022-07-09 22:48 ` [PATCH 3/5] xfs: use XFS_IFORK_Q to determine the presence of an xattr fork Darrick J. Wong
2022-07-11  1:29   ` Dave Chinner
2022-07-09 22:48 ` [PATCH 4/5] xfs: replace XFS_IFORK_Q with a proper predicate function Darrick J. Wong
2022-07-09 22:49 ` [PATCH 5/5] xfs: replace inode fork size macros with functions Darrick J. Wong
2022-07-11  5:25 ` [PATCHSET v2 0/5] xfs: make attr forks permanent Christoph Hellwig
2022-07-12  1:53   ` Darrick J. Wong
2022-07-12  4:50     ` Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YszMaH4fLe0S6Jp7@magnolia \
    --to=djwong@kernel.org \
    --cc=allison.henderson@oracle.com \
    --cc=david@fromorbit.com \
    --cc=dchinner@redhat.com \
    --cc=hch@infradead.org \
    --cc=linux-xfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox