@@ -212,7 +212,7 @@ struct dentry_operations {
212
212
213
213
extern seqlock_t rename_lock ;
214
214
215
- static inline int dname_external (struct dentry * dentry )
215
+ static inline int dname_external (const struct dentry * dentry )
216
216
{
217
217
return dentry -> d_name .name != dentry -> d_iname ;
218
218
}
@@ -358,17 +358,17 @@ extern struct dentry *dget_parent(struct dentry *dentry);
358
358
* Returns true if the dentry passed is not currently hashed.
359
359
*/
360
360
361
- static inline int d_unhashed (struct dentry * dentry )
361
+ static inline int d_unhashed (const struct dentry * dentry )
362
362
{
363
363
return hlist_bl_unhashed (& dentry -> d_hash );
364
364
}
365
365
366
- static inline int d_unlinked (struct dentry * dentry )
366
+ static inline int d_unlinked (const struct dentry * dentry )
367
367
{
368
368
return d_unhashed (dentry ) && !IS_ROOT (dentry );
369
369
}
370
370
371
- static inline int cant_mount (struct dentry * dentry )
371
+ static inline int cant_mount (const struct dentry * dentry )
372
372
{
373
373
return (dentry -> d_flags & DCACHE_CANT_MOUNT );
374
374
}
@@ -382,12 +382,12 @@ static inline void dont_mount(struct dentry *dentry)
382
382
383
383
extern void dput (struct dentry * );
384
384
385
- static inline bool d_managed (struct dentry * dentry )
385
+ static inline bool d_managed (const struct dentry * dentry )
386
386
{
387
387
return dentry -> d_flags & DCACHE_MANAGED_DENTRY ;
388
388
}
389
389
390
- static inline bool d_mountpoint (struct dentry * dentry )
390
+ static inline bool d_mountpoint (const struct dentry * dentry )
391
391
{
392
392
return dentry -> d_flags & DCACHE_MOUNTED ;
393
393
}
0 commit comments