Skip to content

Commit 24924a2

Browse files
bergwolfAl Viro
authored andcommitted
vfs: constify dentry parameter in d_count()
so that it can be used in places like d_compare/d_hash without causing a compiler warning. Signed-off-by: Peng Tao <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent acfec9a commit 24924a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/dcache.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ static inline int __d_rcu_to_refcount(struct dentry *dentry, unsigned seq)
324324
return ret;
325325
}
326326

327-
static inline unsigned d_count(struct dentry *dentry)
327+
static inline unsigned d_count(const struct dentry *dentry)
328328
{
329329
return dentry->d_count;
330330
}

0 commit comments

Comments
 (0)