so that it can be used in places like d_compare/d_hash without causing a compiler warning.
Showing the changes to include/linux (1 of 1 file). Show all
Unified · Split
| @@ -324,7 +324,7 @@ static inline int __d_rcu_to_refcount(struct dentry *dentry, unsigned seq) · 323 unmodified lines | ||
| 324 | 324 | return ret; |
| 325 | 325 | } |
| 326 | 326 | |
| 327 | −static inline unsigned d_count(struct dentry *dentry) | |
| 327 | +static inline unsigned d_count(const struct dentry *dentry) | |
| 328 | 328 | { |
| 329 | 329 | return dentry->d_count; |
| 330 | 330 | } |