mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
helper for reading ->d_count
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
74b9272bbe
commit
84d08fa888
12 changed files with 22 additions and 17 deletions
|
@ -324,6 +324,11 @@ static inline int __d_rcu_to_refcount(struct dentry *dentry, unsigned seq)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static inline unsigned d_count(struct dentry *dentry)
|
||||
{
|
||||
return dentry->d_count;
|
||||
}
|
||||
|
||||
/* validate "insecure" dentry pointer */
|
||||
extern int d_validate(struct dentry *, struct dentry *);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue