Skip to content

Commit

Permalink
constify more dcache.h inlined helpers.
Browse files Browse the repository at this point in the history
const struct pointers in commit f0d3b3d ("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>
  • Loading branch information
NeilBrown authored and Al Viro committed Oct 20, 2017
1 parent 33d930e commit 4ded097
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/dcache.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 4ded097

Please sign in to comment.