projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acfec9a
)
vfs: constify dentry parameter in d_count()
author
Peng Tao
<bergwolf@gmail.com>
Thu, 18 Jul 2013 14:09:08 +0000
(22:09 +0800)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 20 Jul 2013 01:06:27 +0000
(
05:06
+0400)
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>
include/linux/dcache.h
patch
|
blob
|
history
diff --git
a/include/linux/dcache.h
b/include/linux/dcache.h
index 3092df3614ae4651a867571ccbaa1d670e97c314..b90337c9d468ead13e94f4c6ed110bdf75723755 100644
(file)
--- a/
include/linux/dcache.h
+++ b/
include/linux/dcache.h
@@
-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;
}