diff options
author | 2013-07-05 18:59:33 +0400 | |
---|---|---|
committer | 2013-07-05 18:59:33 +0400 | |
commit | 84d08fa888e7c2d53b5bbc764db2ef02968b499c (patch) | |
tree | fa891009d778586eefdf3be8a11671ab9aefb13a /include/linux/dcache.h | |
parent | Merge tag 'devicetree-for-linus' of git://git.secretlab.ca/git/linux (diff) | |
download | linux-84d08fa888e7c2d53b5bbc764db2ef02968b499c.tar.gz linux-84d08fa888e7c2d53b5bbc764db2ef02968b499c.tar.bz2 linux-84d08fa888e7c2d53b5bbc764db2ef02968b499c.zip |
helper for reading ->d_count
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/dcache.h')
-rw-r--r-- | include/linux/dcache.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/dcache.h b/include/linux/dcache.h index f42dbe145479..3092df3614ae 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h @@ -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 *); |