summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndré Almeida <andrealmeid@igalia.com>2024-10-21 13:37:21 -0300
committerChristian Brauner <brauner@kernel.org>2024-10-28 13:36:54 +0100
commit458532c8dfeb24edd5e07467605a6484a728e5c2 (patch)
tree9aade4c37b4de427a7048660ec3c9964e70921aa /include/linux
parent142fa60f61f93805471012f24e029af6d113c5cc (diff)
libfs: Export generic_ci_ dentry functions
Export generic_ci_ dentry functions so they can be used by case-insensitive filesystems that need something more custom than the default one set by `struct generic_ci_dentry_ops`. Reviewed-by: Gabriel Krisman Bertazi <gabriel@krisman.be> Signed-off-by: André Almeida <andrealmeid@igalia.com> Link: https://lore.kernel.org/r/20241021-tonyk-tmpfs-v8-5-f443d5814194@igalia.com Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/fs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 403ee5d54c60..b277369672a1 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -3458,6 +3458,10 @@ extern int generic_ci_match(const struct inode *parent,
const u8 *de_name, u32 de_name_len);
#if IS_ENABLED(CONFIG_UNICODE)
+int generic_ci_d_hash(const struct dentry *dentry, struct qstr *str);
+int generic_ci_d_compare(const struct dentry *dentry, unsigned int len,
+ const char *str, const struct qstr *name);
+
/**
* generic_ci_validate_strict_name - Check if a given name is suitable
* for a directory