History

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.

Peng Tao committed 13 years ago

Commit 24924a21 parent acfec9a1 file · +1 −1Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/dcache.h+1−1
@@ -324,7 +324,7 @@ static inline int __d_rcu_to_refcount(struct dentry *dentry, unsigned seq) · 323 unmodified lines
324 return ret;324 return ret;
325}325}
326 326
327static inline unsigned d_count(struct dentry *dentry)327static inline unsigned d_count(const struct dentry *dentry)
328{328{
329 return dentry->d_count;329 return dentry->d_count;
330}330}