vfs: constify dentry parameter in d_count()
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.
Signed-off-by Peng Tao <[email protected]>
--- include/linux/dcache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/dcache.h +1 -1
@@ -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