Commit 24924a20dab603089011f9d3eb7622f0f6ef93c0

Authored by Peng Tao
Committed by Al Viro
1 parent acfec9a5a8

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 <tao.peng@emc.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

include/linux/dcache.h
... ... @@ -324,7 +324,7 @@
324 324 return ret;
325 325 }
326 326  
327   -static inline unsigned d_count(struct dentry *dentry)
  327 +static inline unsigned d_count(const struct dentry *dentry)
328 328 {
329 329 return dentry->d_count;
330 330 }