@@ -215,7 +215,7 @@ struct dentry_operations {
215
215
216
216
extern seqlock_t rename_lock ;
217
217
218
- static inline int dname_external (struct dentry * dentry )
218
+ static inline int dname_external (const struct dentry * dentry )
219
219
{
220
220
return dentry -> d_name .name != dentry -> d_iname ;
221
221
}
@@ -386,17 +386,17 @@ extern struct dentry *dget_parent(struct dentry *dentry);
386
386
* Returns true if the dentry passed is not currently hashed.
387
387
*/
388
388
389
- static inline int d_unhashed (struct dentry * dentry )
389
+ static inline int d_unhashed (const struct dentry * dentry )
390
390
{
391
391
return hlist_bl_unhashed (& dentry -> d_hash );
392
392
}
393
393
394
- static inline int d_unlinked (struct dentry * dentry )
394
+ static inline int d_unlinked (const struct dentry * dentry )
395
395
{
396
396
return d_unhashed (dentry ) && !IS_ROOT (dentry );
397
397
}
398
398
399
- static inline int cant_mount (struct dentry * dentry )
399
+ static inline int cant_mount (const struct dentry * dentry )
400
400
{
401
401
return (dentry -> d_flags & DCACHE_CANT_MOUNT );
402
402
}
@@ -410,12 +410,12 @@ static inline void dont_mount(struct dentry *dentry)
410
410
411
411
extern void dput (struct dentry * );
412
412
413
- static inline bool d_managed (struct dentry * dentry )
413
+ static inline bool d_managed (const struct dentry * dentry )
414
414
{
415
415
return dentry -> d_flags & DCACHE_MANAGED_DENTRY ;
416
416
}
417
417
418
- static inline bool d_mountpoint (struct dentry * dentry )
418
+ static inline bool d_mountpoint (const struct dentry * dentry )
419
419
{
420
420
return dentry -> d_flags & DCACHE_MOUNTED ;
421
421
}
0 commit comments