From: Brian Foster <bfoster@redhat.com>
To: "Carl E. Thompson" <cet@carlthompson.net>
Cc: Kent Overstreet <kent.overstreet@linux.dev>,
linux-bcachefs@vger.kernel.org, djwong@kernel.org
Subject: Re: [PATCH 1/2] bcachefs: add fiemap delalloc extent detection
Date: Tue, 9 Jan 2024 11:42:41 -0500 [thread overview]
Message-ID: <ZZ13gdxGh8Tn5DdC@bfoster> (raw)
In-Reply-To: <1197499938.727.1704753283643@mail.carlthompson.net>
On Mon, Jan 08, 2024 at 02:34:43PM -0800, Carl E. Thompson wrote:
> I'm not a kernel developer so feel free to ignore this.
>
> > On 2024-01-08 7:33 AM PST Brian Foster <bfoster@redhat.com> wrote:
>
> > ...
>
> > 3. Logistically, this is likely to be a bit awkward for pretty much
> > everybody who has a history of working with C code.
>
> I disagree with this point. The ability to declare variables anywhere has been around officially since c99 and unofficially for much longer. For half or more of the 50-year history of C it has been allowed so most people with longtime C experience aren't going to be confused.
>
> In fact C **never** required that **all** variables be declared at the beginning of a function. C has always allowed variables to be declared at the beginning of **any** block including unattached / unconditional blocks which I have personally used to great effect to limit the scope of temporary variables and to declare them close to where they were used going as far back as the 80s.
>
Ok, but I'm not referring to the pure act of declaring variables
differently (i.e. such as limiting scope, the other examples given,
etc.). I'm referring specifically to a policy where all function scope
variables are uniformly declared at first use rather than at
top-of-function.
> > In the context of kernel development, something also tells me this has
> > potential to be a tinderbox for a flamewar, but who knows.. ;P
>
> Well that may be the **real** issue! From the outside the kernel developers seem reluctant to revisit old decisions... It's 2024 and the mailing lists still don't accept modern email formats (HTML) which seem like they would make discussion easier. I used to be one of those people who resisted the change and preferred text-based email only but it's now been decades. Time to let that one go!
>
> > ...
>
Hah, well as a mutt user I have to disagree with the HTML thing. ;) But
to be fair, the fact that something might incite a flamewar in a
community that is historically pretty bad at level-headed discussion is
not a great argument. The real issue there is indeed something
different.
My concern with this was more that perhaps there might be indirect cost
to such a policy that might not be fully factored into the value
judgement of adopting it purely to minimize likelihood of a particular
class of bug.
Brian
next prev parent reply other threads:[~2024-01-09 16:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-19 14:02 [PATCH 0/2] bcachefs: fiemap delalloc support and cleanup Brian Foster
2023-12-19 14:02 ` [PATCH 1/2] bcachefs: add fiemap delalloc extent detection Brian Foster
2023-12-19 23:57 ` Kent Overstreet
2024-01-04 12:12 ` Brian Foster
2024-01-04 23:41 ` Kent Overstreet
2024-01-08 15:33 ` Brian Foster
2024-01-08 22:34 ` Carl E. Thompson
2024-01-09 16:42 ` Brian Foster [this message]
2024-01-10 21:54 ` Carl E. Thompson
2023-12-19 14:02 ` [PATCH 2/2] bcachefs: clean up some dead fallocate code Brian Foster
2023-12-20 0:00 ` Kent Overstreet
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=ZZ13gdxGh8Tn5DdC@bfoster \
--to=bfoster@redhat.com \
--cc=cet@carlthompson.net \
--cc=djwong@kernel.org \
--cc=kent.overstreet@linux.dev \
--cc=linux-bcachefs@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