Prechádzať zdrojové kódy

constify dentry_operations: FUSE

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Al Viro 16 rokov pred
rodič
commit
4269590a72
2 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 1 1
      fs/fuse/dir.c
  2. 1 1
      fs/fuse/fuse_i.h

+ 1 - 1
fs/fuse/dir.c

@@ -224,7 +224,7 @@ static int invalid_nodeid(u64 nodeid)
 	return !nodeid || nodeid == FUSE_ROOT_ID;
 }
 
-struct dentry_operations fuse_dentry_operations = {
+const struct dentry_operations fuse_dentry_operations = {
 	.d_revalidate	= fuse_dentry_revalidate,
 };
 

+ 1 - 1
fs/fuse/fuse_i.h

@@ -493,7 +493,7 @@ static inline u64 get_node_id(struct inode *inode)
 /** Device operations */
 extern const struct file_operations fuse_dev_operations;
 
-extern struct dentry_operations fuse_dentry_operations;
+extern const struct dentry_operations fuse_dentry_operations;
 
 /**
  * Get a filled in inode