diff options
author | Yuezhang Mo <Yuezhang.Mo@sony.com> | 2023-10-30 17:25:31 +0800 |
---|---|---|
committer | Namjae Jeon <linkinjeon@kernel.org> | 2024-03-19 20:55:33 +0900 |
commit | 01da3a5176c62a3310573f593579ebf88b6af5c0 (patch) | |
tree | 6e2f1977cd3452179daf9f1202a12a1067beabd7 /fs/exfat/exfat_fs.h | |
parent | 7b6bab2359e34a85359771a9837b1f44c37e82d2 (diff) | |
download | lwn-01da3a5176c62a3310573f593579ebf88b6af5c0.tar.gz lwn-01da3a5176c62a3310573f593579ebf88b6af5c0.zip |
exfat: add exfat_get_empty_dentry_set() helper
This helper is used to lookup empty dentry set. If there are
no enough empty dentries at the input location, this helper will
return the number of dentries that need to be skipped for the
next lookup.
Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: Andy Wu <Andy.Wu@sony.com>
Reviewed-by: Aoyama Wataru <wataru.aoyama@sony.com>
Reviewed-by: Sungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'fs/exfat/exfat_fs.h')
-rw-r--r-- | fs/exfat/exfat_fs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/exfat/exfat_fs.h b/fs/exfat/exfat_fs.h index 037e8827a56f..c6f684bf7b92 100644 --- a/fs/exfat/exfat_fs.h +++ b/fs/exfat/exfat_fs.h @@ -502,6 +502,9 @@ struct exfat_dentry *exfat_get_dentry_cached(struct exfat_entry_set_cache *es, int exfat_get_dentry_set(struct exfat_entry_set_cache *es, struct super_block *sb, struct exfat_chain *p_dir, int entry, unsigned int num_entries); +int exfat_get_empty_dentry_set(struct exfat_entry_set_cache *es, + struct super_block *sb, struct exfat_chain *p_dir, int entry, + unsigned int num_entries); int exfat_put_dentry_set(struct exfat_entry_set_cache *es, int sync); int exfat_count_dir_entries(struct super_block *sb, struct exfat_chain *p_dir); |