Skip to content

Commit

Permalink
vfs: constify dentry parameter in d_count()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bergwolf authored and Al Viro committed Jul 20, 2013
1 parent acfec9a commit 24924a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/dcache.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 24924a2

Please sign in to comment.