提交 24924a20 编写于 作者: P Peng Tao 提交者: Al Viro

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: NPeng Tao <tao.peng@emc.com>
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 acfec9a5
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册