提交 4ded097b 编写于 作者: N NeilBrown 提交者: Al Viro

constify more dcache.h inlined helpers.

const struct pointers in commit f0d3b3de ("constify dcache.c
inlined helpers where possible").
This patch allows 'const' in a couple that were added since then.
Signed-off-by: NNeilBrown <neilb@suse.com>
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 33d930e5
...@@ -358,7 +358,7 @@ static inline void dont_mount(struct dentry *dentry) ...@@ -358,7 +358,7 @@ static inline void dont_mount(struct dentry *dentry)
extern void __d_lookup_done(struct 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; return dentry->d_flags & DCACHE_PAR_LOOKUP;
} }
...@@ -486,7 +486,7 @@ static inline bool d_really_is_positive(const struct dentry *dentry) ...@@ -486,7 +486,7 @@ static inline bool d_really_is_positive(const struct dentry *dentry)
return dentry->d_inode != NULL; 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); return d_really_is_positive(dentry) && !d_unhashed(dentry);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册