* [PATCH] vfs: constify dentry parameter in d_count()
@ 2013-07-18 14:09 Peng Tao
0 siblings, 0 replies; only message in thread
From: Peng Tao @ 2013-07-18 14:09 UTC (permalink / raw)
To: Al Viro; +Cc: linux-fsdevel, Peng Tao, Peng Tao
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>
---
include/linux/dcache.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/dcache.h b/include/linux/dcache.h
index 3092df3..b90337c 100644
--- 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;
}
--
1.7.9.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-07-18 14:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-18 14:09 [PATCH] vfs: constify dentry parameter in d_count() Peng Tao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).