orangefs: constify inode_operations
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 14 May 2016 22:46:32 +0000 (18:46 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 29 May 2016 23:07:00 +0000 (19:07 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/orangefs/inode.c
fs/orangefs/namei.c
fs/orangefs/orangefs-kernel.h
fs/orangefs/symlink.c

index 85640e955cde93dfe40b70768aa78d6cb660ac41..0f586bded7f42f1c7ea41125c15fa16dafd9f242 100644 (file)
@@ -294,7 +294,7 @@ int orangefs_permission(struct inode *inode, int mask)
 }
 
 /* ORANGEDS2 implementation of VFS inode operations for files */
-struct inode_operations orangefs_file_inode_operations = {
+const struct inode_operations orangefs_file_inode_operations = {
        .get_acl = orangefs_get_acl,
        .set_acl = orangefs_set_acl,
        .setattr = orangefs_setattr,
index 930894ae7e1dc4543373d54ff1984b9ae5f8ff5e..7e8dfa97c44a4a2b2b9b6575cc8815b41fac1672 100644 (file)
@@ -438,7 +438,7 @@ static int orangefs_rename(struct inode *old_dir,
 }
 
 /* ORANGEFS implementation of VFS inode operations for directories */
-struct inode_operations orangefs_dir_inode_operations = {
+const struct inode_operations orangefs_dir_inode_operations = {
        .lookup = orangefs_lookup,
        .get_acl = orangefs_get_acl,
        .set_acl = orangefs_set_acl,
index 2281882f718eed1cd1e1cf50ec7aaf7b23ab3794..db78ddde0236c8af1013f4d6958fbd60339ea80b 100644 (file)
@@ -570,10 +570,10 @@ extern int hash_table_size;
 
 extern const struct address_space_operations orangefs_address_operations;
 extern struct backing_dev_info orangefs_backing_dev_info;
-extern struct inode_operations orangefs_file_inode_operations;
+extern const struct inode_operations orangefs_file_inode_operations;
 extern const struct file_operations orangefs_file_operations;
-extern struct inode_operations orangefs_symlink_inode_operations;
-extern struct inode_operations orangefs_dir_inode_operations;
+extern const struct inode_operations orangefs_symlink_inode_operations;
+extern const struct inode_operations orangefs_dir_inode_operations;
 extern const struct file_operations orangefs_dir_operations;
 extern const struct dentry_operations orangefs_dentry_operations;
 extern const struct file_operations orangefs_devreq_file_operations;
index 6418dd6386801a366b7df9012b11b61edf40d9c3..8fecf823f5ba2e0241441f96e4d48693ef9d58a2 100644 (file)
@@ -8,7 +8,7 @@
 #include "orangefs-kernel.h"
 #include "orangefs-bufmap.h"
 
-struct inode_operations orangefs_symlink_inode_operations = {
+const struct inode_operations orangefs_symlink_inode_operations = {
        .readlink = generic_readlink,
        .get_link = simple_get_link,
        .setattr = orangefs_setattr,