summaryrefslogtreecommitdiffstats
path: root/include/linux/dcache.h
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/linux/dcache.h
parentcbd4a5bcb25b5ed0c1c64bc969b893cad9b78acc (diff)
parent4ded097bed1663b307f353a0dd6ad931e345834e (diff)
downloadlinux-04bbc9795d2e89c79edf48fb1303ace2e8c90a60.tar.gz
linux-04bbc9795d2e89c79edf48fb1303ace2e8c90a60.tar.bz2
linux-04bbc9795d2e89c79edf48fb1303ace2e8c90a60.zip
Merge branch 'old.dcache' into work.dcache
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 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);
}