Skip to contentSkip to conversation

vfs: constify dentry parameter in d_count()

PATCH New Peng Tao 1 participant 1 message Jul 18, 2013 VFS

lore
Share & tools
lore

Peng Tao

author
#0 lore raw

PATCH 1/1 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.

---
 include/linux/dcache.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/dcache.h +1 -1
index 3092df3..b90337c 100644
@@ -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;
 }
Signature · 1 line
1.7.9.5