From: Joshua Crofts <joshua.crofts1@gmail.com>
To: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Cc: Viacheslav Dubeyko <slava@dubeyko.com>,
linux-nilfs@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] nilfs2: remove '#if 0' code blocks
Date: Sun, 6 Sep 2026 22:55:25 +0200 [thread overview]
Message-ID: <20260906225525.6d8b509e@systembl0wer> (raw)
In-Reply-To: <CAKFNMo=4VdyB2OovP5hsQejFd-zf=5BMvvMMBTRjQCYPPtzdYA@mail.gmail.com>
On Mon, 7 Sep 2026 01:47:35 +0900
Ryusuke Konishi <konishi.ryusuke@gmail.com> wrote:
> On Sat, Sep 5, 2026 at 1:49 PM Joshua Crofts wrote:
> >
> > There are two instances of '#if 0' code blocks that are dead code.
> > Remove these code blocks.
> >
> > Additionally, remove unnecessary brackets around a single-statement
> > if per checkpatch rules.
> >
> > Signed-off-by: Joshua Crofts <joshua.crofts1@gmail.com>
> > ---
> > Stumbled upon these blocks when grepping the kernel for #if 0. Not sure
> > if they are actually used for debugging; if so, I have no issues with
> > the patch being dropped.
> >
> > Thanks!
>
> Joshua Crofts, thank you for proposing this patch.
>
> I agree that it is appropriate to remove the dead code in both locations.
>
> These sections are not for debugging purposes; rather, they both
> relate to features that were never implemented.
>
> Regarding the ACL-related dead code, it can be properly implemented
> when the feature is actually added; therefore, removing it is fine
> (and indeed preferable, as it reduces the tree-wide maintenance burden
> in the interim).
>
> The dead code related to mount counts stems from a legacy feature
> designed for periodic full checks upon mounting.
> However, mandating a heavy, full-filesystem check simply because a
> certain number of mounts has been reached is outdated; in an era where
> large-capacity storage is the norm, such a process compromises
> availability.
> While fsck itself remains necessary, periodic health checks should be
> handled via alternative online methods.
>
> I have just one point regarding the ACL dead code removal: in
> nilfs_new_inode() within "inode.c", there are lines that are merely
> commented out rather than being enclosed in "#if 0" (shown below).
>
> /* ii->i_file_acl = 0; */
> /* ii->i_dir_acl = 0; */
>
> Could you please revise your patch to remove these lines as well?
>
> Once you have made these changes, I will accept the patch.
>
Hi Ryusuke,
Thanks for the explanation!
I'll implement the change you proposed in v2.
--
Kind regards,
Joshua Crofts
prev parent reply other threads:[~2026-09-06 20:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-05 4:48 Joshua Crofts
2026-09-06 16:47 ` Ryusuke Konishi
2026-09-06 20:55 ` Joshua Crofts [this message]
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=20260906225525.6d8b509e@systembl0wer \
--to=joshua.crofts1@gmail.com \
--cc=konishi.ryusuke@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nilfs@vger.kernel.org \
--cc=slava@dubeyko.com \
/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
all inboxes | Powered by JetHome®