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
324324 return ret;
325325 }
326326
327−static inline unsigned d_count(struct dentry *dentry)
327+static inline unsigned d_count(const struct dentry *dentry)
328328 {
329329 return dentry->d_count;
330330 }