Skip to content

Commit 4ded097

Browse files
NeilBrownAl Viro
authored andcommitted
constify more dcache.h inlined helpers.
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 <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent 33d930e commit 4ded097

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/linux/dcache.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ static inline void dont_mount(struct dentry *dentry)
358358

359359
extern void __d_lookup_done(struct dentry *);
360360

361-
static inline int d_in_lookup(struct dentry *dentry)
361+
static inline int d_in_lookup(const struct dentry *dentry)
362362
{
363363
return dentry->d_flags & DCACHE_PAR_LOOKUP;
364364
}
@@ -486,7 +486,7 @@ static inline bool d_really_is_positive(const struct dentry *dentry)
486486
return dentry->d_inode != NULL;
487487
}
488488

489-
static inline int simple_positive(struct dentry *dentry)
489+
static inline int simple_positive(const struct dentry *dentry)
490490
{
491491
return d_really_is_positive(dentry) && !d_unhashed(dentry);
492492
}

0 commit comments

Comments
 (0)