diff options
author | Yuezhang Mo <Yuezhang.Mo@sony.com> | 2024-09-13 18:02:39 +0800 |
---|---|---|
committer | Namjae Jeon <linkinjeon@kernel.org> | 2024-11-25 17:08:24 +0900 |
commit | 0891c7313d87a1b6baf7162bc2f0d755ce70383f (patch) | |
tree | 3a1847ed549799f336ed970e8f2e214c66ded244 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | ac844e91364a03c35838fd488437605fbe56f8c3 (diff) | |
download | linux-0891c7313d87a1b6baf7162bc2f0d755ce70383f.tar.gz linux-0891c7313d87a1b6baf7162bc2f0d755ce70383f.tar.bz2 linux-0891c7313d87a1b6baf7162bc2f0d755ce70383f.zip |
exfat: move exfat_chain_set() out of __exfat_resolve_path()
__exfat_resolve_path() mixes two functions. The first one is to
resolve and check if the path is valid. The second one is to output
the cluster assigned to the directory.
The second one is only needed when need to traverse the directory
entries, and calling exfat_chain_set() so early causes p_dir to be
passed as an argument multiple times, increasing the complexity of
the code.
This commit moves the call to exfat_chain_set() before traversing
directory entries.
Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: Aoyama Wataru <wataru.aoyama@sony.com>
Reviewed-by: Daniel Palmer <daniel.palmer@sony.com>
Reviewed-by: Sungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions