aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/dcache.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2017-10-20 11:41:17 +1100
committerAl Viro <viro@zeniv.linux.org.uk>2017-10-20 01:33:01 -0400
commit4ded097bed1663b307f353a0dd6ad931e345834e (patch)
treeb8acd341d7d564c813586f0436c7f280cf12dedb /include/linux/dcache.h
parentLinux 4.14-rc5 (diff)
downloadlinux-dev-4ded097bed1663b307f353a0dd6ad931e345834e.tar.xz
linux-dev-4ded097bed1663b307f353a0dd6ad931e345834e.zip
constify more dcache.h inlined helpers.
const struct pointers in commit f0d3b3ded999 ("constify dcache.c inlined helpers where possible"). This patch allows 'const' in a couple that were added since then. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/dcache.h')
-rw-r--r--include/linux/dcache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/dcache.h b/include/linux/dcache.h
index ed1a7cf6923a..4cc3d891ea03 100644
--- a/include/linux/dcache.h
+++ b/include/linux/dcache.h
@@ -358,7 +358,7 @@ static inline void dont_mount(struct dentry *dentry)
extern void __d_lookup_done(struct dentry *);
-static inline int d_in_lookup(struct dentry *dentry)
+static inline int d_in_lookup(const struct dentry *dentry)
{
return dentry->d_flags & DCACHE_PAR_LOOKUP;
}
@@ -486,7 +486,7 @@ static inline bool d_really_is_positive(const struct dentry *dentry)
return dentry->d_inode != NULL;
}
-static inline int simple_positive(struct dentry *dentry)
+static inline int simple_positive(const struct dentry *dentry)
{
return d_really_is_positive(dentry) && !d_unhashed(dentry);
}