aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2018-04-04 00:40:19 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2018-04-04 00:40:19 -0400
commit04bbc9795d2e89c79edf48fb1303ace2e8c90a60 (patch)
treed803d5fbedaa6d15c3db50a3b4113792a2e14b69 /include
parentd_genocide: move export to definition (diff)
parentconstify more dcache.h inlined helpers. (diff)
downloadlinux-dev-04bbc9795d2e89c79edf48fb1303ace2e8c90a60.tar.xz
linux-dev-04bbc9795d2e89c79edf48fb1303ace2e8c90a60.zip
Merge branch 'old.dcache' into work.dcache
Diffstat (limited to 'include')
-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 c84ffbfc5098..94acbde17bb1 100644
--- a/include/linux/dcache.h
+++ b/include/linux/dcache.h
@@ -359,7 +359,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;
}
@@ -487,7 +487,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);
}