From: Markus Elfring <Markus.Elfring@web.de>
To: Song jeonghak <thdwjdgkr123@gmail.com>,
linux-fsdevel@vger.kernel.org,
John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>,
Viacheslav Dubeyko <slava@dubeyko.com>,
Yangtao Li <frank.li@vivo.com>
Cc: syzbot+98547b0428b6a6a3467c@syzkaller.appspotmail.com,
LKML <linux-kernel@vger.kernel.org>,
Edward Adam Davis <eadavis@qq.com>,
Shardul Bankar <shardul.b@mpiricsoftware.com>
Subject: Re: [PATCH] hfsplus: free failed b-tree nodes in hfs_bnode_put()
Date: Mon, 26 Oct 2026 19:00:39 +0100 [thread overview]
Message-ID: <773c7445-8d4b-4d94-a995-297ecee9c879@web.de> (raw)
In-Reply-To: <20261026152139.458677-1-thdwjdgkr123@gmail.com>
…
> +++ b/fs/hfsplus/bnode.c
> @@ -702,6 +702,14 @@ void hfs_bnode_put(struct hfs_bnode *node)
> hfs_bnode_free(node);
> return;
> }
> +
> + if (test_bit(HFS_BNODE_ERROR, &node->flags)) {
> + hfs_bnode_unhash(node);
> + spin_unlock(&tree->hash_lock);
> + hfs_bnode_free(node);
> + return;
> + }
…
How do you think about to avoid a bit of duplicate source code?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/coding-style.rst?h=v7.3#n526
Regards,
Markus
prev parent reply other threads:[~2026-10-26 18:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-26 15:21 Song jeonghak
2026-10-26 18:00 ` Markus Elfring [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=773c7445-8d4b-4d94-a995-297ecee9c879@web.de \
--to=markus.elfring@web.de \
--cc=eadavis@qq.com \
--cc=frank.li@vivo.com \
--cc=glaubitz@physik.fu-berlin.de \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shardul.b@mpiricsoftware.com \
--cc=slava@dubeyko.com \
--cc=syzbot+98547b0428b6a6a3467c@syzkaller.appspotmail.com \
--cc=thdwjdgkr123@gmail.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®