aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/dcache.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2017-07-04 17:25:22 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2017-07-06 03:27:09 -0400
commitcdf01226b26e98c79c13b335fbe0cbbbe850cf44 (patch)
tree979318b9a3b69b03b39f6e66d3ffa75b82565ddc /include/linux/dcache.h
parentVFS: Make get_filesystem() return the affected filesystem (diff)
downloadlinux-dev-cdf01226b26e98c79c13b335fbe0cbbbe850cf44.tar.xz
linux-dev-cdf01226b26e98c79c13b335fbe0cbbbe850cf44.zip
VFS: Provide empty name qstr
Provide an empty name (ie. "") qstr for general use. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/dcache.h')
-rw-r--r--include/linux/dcache.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/dcache.h b/include/linux/dcache.h
index d2e38dc6172c..3f65a4fa72ed 100644
--- a/include/linux/dcache.h
+++ b/include/linux/dcache.h
@@ -55,6 +55,11 @@ struct qstr {
#define QSTR_INIT(n,l) { { { .len = l } }, .name = n }
+extern const char empty_string[];
+extern const struct qstr empty_name;
+extern const char slash_string[];
+extern const struct qstr slash_name;
+
struct dentry_stat_t {
long nr_dentry;
long nr_unused;