summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro2018-04-04 06:40:19 +0200
committerAl Viro2018-04-04 06:40:19 +0200
commit04bbc9795d2e89c79edf48fb1303ace2e8c90a60 (patch)
treed803d5fbedaa6d15c3db50a3b4113792a2e14b69
parentd_genocide: move export to definition (diff)
parentconstify more dcache.h inlined helpers. (diff)
downloadkernel-qcow2-linux-04bbc9795d2e89c79edf48fb1303ace2e8c90a60.tar.gz
kernel-qcow2-linux-04bbc9795d2e89c79edf48fb1303ace2e8c90a60.tar.xz
kernel-qcow2-linux-04bbc9795d2e89c79edf48fb1303ace2e8c90a60.zip
Merge branch 'old.dcache' into work.dcache
-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);
}