summaryrefslogtreecommitdiff
path: root/drivers/char/drm/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorZilin Guan <zilin@seu.edu.cn>2026-03-27 16:47:42 +0800
committerViacheslav Dubeyko <slava@dubeyko.com>2026-03-27 14:17:50 -0700
commitd47059dcc472ae823c7eebe87fb7cec9148b9f06 (patch)
treed8bbbc9148aff080d4d727fb2912fa846d186114 /drivers/char/drm/git@git.tavy.me:linux.git
parent90c500e4fd83fa33c09bc7ee23b6d9cc487ac733 (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 'drivers/char/drm/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions