public inbox for linux-fsdevel@vger.kernel.org
 help / color / mirror / Atom feed
From: Zilin Guan <zilin@seu.edu.cn>
To: slava.dubeyko@ibm.com
Cc: akpm@linux-foundation.org, frank.li@vivo.com,
	glaubitz@physik.fu-berlin.de, jianhao.xu@seu.edu.cn,
	linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
	slava@dubeyko.com, stable@vger.kernel.org, zilin@seu.edu.cn
Subject: [PATCH v2 0/2] hfsplus: fix lock leak and refactor hidden dir search
Date: Wed, 18 Mar 2026 23:00:44 +0800	[thread overview]
Message-ID: <20260318150046.431428-1-zilin@seu.edu.cn> (raw)

This patch series improves the hidden directory lookup logic in
hfsplus_fill_super().

Patch 1 fixes a b-tree lock leak on the error path during the hidden
directory lookup.

Patch 2 subsequently refactors this lookup logic into a dedicated
helper function to properly encapsulate the data lifecycle, improve
readability, and simplify error handling.

Changes in v2:
- Add patch 2 to extract the hidden directory lookup logic into a helper 
  function.

Zilin Guan (2):
  hfsplus: fix held lock freed on hfsplus_fill_super()
  hfsplus: extract hidden directory search into a helper function

 fs/hfsplus/super.c | 39 ++++++++++++++++++++++++++++-----------
 1 file changed, 28 insertions(+), 11 deletions(-)

-- 
2.34.1


             reply	other threads:[~2026-03-18 15:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-18 15:00 Zilin Guan [this message]
2026-03-18 15:00 ` [PATCH v2 1/2] hfsplus: fix held lock freed on hfsplus_fill_super() Zilin Guan
2026-03-18 15:00 ` [PATCH v2 2/2] hfsplus: extract hidden directory search into a helper function Zilin Guan
2026-03-18 22:33   ` Viacheslav Dubeyko
2026-03-19 14:49     ` Zilin Guan
2026-03-19 21:07       ` Viacheslav Dubeyko

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=20260318150046.431428-1-zilin@seu.edu.cn \
    --to=zilin@seu.edu.cn \
    --cc=akpm@linux-foundation.org \
    --cc=frank.li@vivo.com \
    --cc=glaubitz@physik.fu-berlin.de \
    --cc=jianhao.xu@seu.edu.cn \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=slava.dubeyko@ibm.com \
    --cc=slava@dubeyko.com \
    --cc=stable@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