[PATCH v2 0/2] hfsplus: fix lock leak and refactor hidden dir search
From: Zilin Guan
Date: Wed Mar 18 2026 - 11:08:34 EST
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