aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/exfat/exfat_fs.h
diff options
context:
space:
mode:
authorYuezhang Mo <Yuezhang.Mo@sony.com>2023-10-30 17:25:31 +0800
committerNamjae Jeon <linkinjeon@kernel.org>2024-03-19 20:55:33 +0900
commit01da3a5176c62a3310573f593579ebf88b6af5c0 (patch)
tree6e2f1977cd3452179daf9f1202a12a1067beabd7 /fs/exfat/exfat_fs.h
parentexfat: add __exfat_get_dentry_set() helper (diff)
downloadwireguard-linux-01da3a5176c62a3310573f593579ebf88b6af5c0.tar.xz
wireguard-linux-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 '')
-rw-r--r--fs/exfat/exfat_fs.h3
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);