]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
vfs: constify dentry parameter in d_count()
authorPeng Tao <bergwolf@gmail.com>
Thu, 18 Jul 2013 14:09:08 +0000 (22:09 +0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 20 Jul 2013 01:06:27 +0000 (05:06 +0400)
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>
include/linux/dcache.h

index 3092df3614ae4651a867571ccbaa1d670e97c314..b90337c9d468ead13e94f4c6ed110bdf75723755 100644 (file)
@@ -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;
 }