Skip to content

Commit e56980d

Browse files
Jan EngelhardtAl Viro
authored andcommitted
fs: make struct dentry->d_op const
This change will allow for tagging many dentry_operations const in the source tree. Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent a9f184f commit e56980d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/linux/dcache.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ struct dentry {
112112
struct list_head d_subdirs; /* our children */
113113
struct list_head d_alias; /* inode alias list */
114114
unsigned long d_time; /* used by d_revalidate */
115-
struct dentry_operations *d_op;
115+
const struct dentry_operations *d_op;
116116
struct super_block *d_sb; /* The root of the dentry tree */
117117
void *d_fsdata; /* fs-specific data */
118118

0 commit comments

Comments
 (0)