summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeng Tao <bergwolf@gmail.com>2013-07-18 18:09:08 +0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-07-20 05:06:27 +0400
commit24924a20dab603089011f9d3eb7622f0f6ef93c0 (patch)
tree6759627a328ae3cdc6136bff124e3a8e01da3147 /include
parentacfec9a5a892f98461f52ed5770de99a3e571ae2 (diff)
downloadlinux-24924a20dab603089011f9d3eb7622f0f6ef93c0.tar.xz
vfs: constify dentry parameter in d_count()
so that it can be used in places like d_compare/d_hash without causing a compiler warning. Signed-off-by: Peng Tao <tao.peng@emc.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r--include/linux/dcache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/dcache.h b/include/linux/dcache.h
index 3092df3614ae..b90337c9d468 100644
--- a/include/linux/dcache.h
+++ b/include/linux/dcache.h
@@ -324,7 +324,7 @@ static inline int __d_rcu_to_refcount(struct dentry *dentry, unsigned seq)
return ret;
}
-static inline unsigned d_count(struct dentry *dentry)
+static inline unsigned d_count(const struct dentry *dentry)
{
return dentry->d_count;
}