summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2017-07-04 18:25:22 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2017-07-06 09:27:09 +0200
commitcdf01226b26e98c79c13b335fbe0cbbbe850cf44 (patch)
tree979318b9a3b69b03b39f6e66d3ffa75b82565ddc /include
parentVFS: Make get_filesystem() return the affected filesystem (diff)
downloadlinux-cdf01226b26e98c79c13b335fbe0cbbbe850cf44.tar.xz
linux-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')
-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;