Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24924a20 authored by Peng Tao's avatar Peng Tao Committed by Al Viro
Browse files

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: default avatarPeng Tao <tao.peng@emc.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent acfec9a5
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -324,7 +324,7 @@ static inline int __d_rcu_to_refcount(struct dentry *dentry, unsigned seq)
	return ret;
	return ret;
}
}


static inline unsigned d_count(struct dentry *dentry)
static inline unsigned d_count(const struct dentry *dentry)
{
{
	return dentry->d_count;
	return dentry->d_count;
}
}