]> Git Repo - linux.git/commitdiff
vfs: constify dentry parameter in d_count()
authorPeng Tao <[email protected]>
Thu, 18 Jul 2013 14:09:08 +0000 (22:09 +0800)
committerAl Viro <[email protected]>
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 <[email protected]>
Signed-off-by: Al Viro <[email protected]>
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;
 }
This page took 0.065095 seconds and 4 git commands to generate.