diff options
author | David Howells <dhowells@redhat.com> | 2017-07-04 17:25:22 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-07-06 03:27:09 -0400 |
commit | cdf01226b26e98c79c13b335fbe0cbbbe850cf44 (patch) | |
tree | 979318b9a3b69b03b39f6e66d3ffa75b82565ddc /include/linux/dcache.h | |
parent | ee416bcdba9975065de571e09de1f7ebfde2156a (diff) | |
download | linux-stable-cdf01226b26e98c79c13b335fbe0cbbbe850cf44.tar.gz linux-stable-cdf01226b26e98c79c13b335fbe0cbbbe850cf44.tar.bz2 linux-stable-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.h | 5 |
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; |