diff options
| author | 2026-03-27 16:47:42 +0800 | |
|---|---|---|
| committer | 2026-03-27 14:17:50 -0700 | |
| commit | d47059dcc472ae823c7eebe87fb7cec9148b9f06 (patch) | |
| tree | d8bbbc9148aff080d4d727fb2912fa846d186114 /tools/perf/scripts/python | |
| parent | hfsplus: fix held lock freed on hfsplus_fill_super() (diff) | |
hfsplus: extract hidden directory search into a helper function
In hfsplus_fill_super(), the process of looking up the hidden directory
involves initializing a catalog search, building a search key, reading
the b-tree record, and releasing the search data.
Currently, this logic is open-coded directly within the main superblock
initialization routine. This makes hfsplus_fill_super() quite lengthy
and its error handling paths less straightforward.
Extract the hidden directory search sequence into a new helper function,
hfsplus_get_hidden_dir_entry(). This improves overall code readability,
cleanly encapsulates the hfs_find_data lifecycle, and simplifies the
error exits in hfsplus_fill_super().
Signed-off-by: Zilin Guan <zilin@seu.edu.cn>
Reviewed-by: Viacheslav Dubeyko <slava@dubeyko.com>
Tested-by: Viacheslav Dubeyko <slava@dubeyko.com>
Signed-off-by: Viacheslav Dubeyko <slava@dubeyko.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
