Skip to contentSkip to conversation

fs: make struct dentry->d_op const

PATCH In review [email protected] 1 participant 1 message Mar 4, 2009 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 fs: make struct dentry->d_op const

From: Jan Engelhardt <[email protected]>

This change will allow for tagging many dentry_operations const in the source tree.

---

 include/linux/dcache.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/dcache.h renamed from include/linux/dcache.h~fs-make-struct-dentry-d_op-const +1 -1
diff -puN include/linux/dcache.h~fs-make-struct-dentry-d_op-const include/linux/dcache.h
@@ -112,7 +112,7 @@ struct dentry {
 	struct list_head d_subdirs;	/* our children */
 	struct list_head d_alias;	/* inode alias list */
 	unsigned long d_time;		/* used by d_revalidate */
-	struct dentry_operations *d_op;
+	const struct dentry_operations *d_op;
 	struct super_block *d_sb;	/* The root of the dentry tree */
 	void *d_fsdata;			/* fs-specific data */
 

_