aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-05-14 18:46:32 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2016-05-29 19:07:00 -0400
commit6f3fc1070be028170b0f4c0c326480c9fcd1da3e (patch)
tree6792dbc6f732a63aa591a47fcad90c74ebd0ccff
parent90090ae645f6affba0d4c8413749df96dde0a526 (diff)
orangefs: constify inode_operations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--fs/orangefs/inode.c2
-rw-r--r--fs/orangefs/namei.c2
-rw-r--r--fs/orangefs/orangefs-kernel.h6
-rw-r--r--fs/orangefs/symlink.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/fs/orangefs/inode.c b/fs/orangefs/inode.c
index 85640e955cde..0f586bded7f4 100644
--- a/fs/orangefs/inode.c
+++ b/fs/orangefs/inode.c
@@ -294,7 +294,7 @@ int orangefs_permission(struct inode *inode, int mask)
294} 294}
295 295
296/* ORANGEDS2 implementation of VFS inode operations for files */ 296/* ORANGEDS2 implementation of VFS inode operations for files */
297struct inode_operations orangefs_file_inode_operations = { 297const struct inode_operations orangefs_file_inode_operations = {
298 .get_acl = orangefs_get_acl, 298 .get_acl = orangefs_get_acl,
299 .set_acl = orangefs_set_acl, 299 .set_acl = orangefs_set_acl,
300 .setattr = orangefs_setattr, 300 .setattr = orangefs_setattr,
diff --git a/fs/orangefs/namei.c b/fs/orangefs/namei.c
index 930894ae7e1d..7e8dfa97c44a 100644
--- a/fs/orangefs/namei.c
+++ b/fs/orangefs/namei.c
@@ -438,7 +438,7 @@ static int orangefs_rename(struct inode *old_dir,
438} 438}
439 439
440/* ORANGEFS implementation of VFS inode operations for directories */ 440/* ORANGEFS implementation of VFS inode operations for directories */
441struct inode_operations orangefs_dir_inode_operations = { 441const struct inode_operations orangefs_dir_inode_operations = {
442 .lookup = orangefs_lookup, 442 .lookup = orangefs_lookup,
443 .get_acl = orangefs_get_acl, 443 .get_acl = orangefs_get_acl,
444 .set_acl = orangefs_set_acl, 444 .set_acl = orangefs_set_acl,
diff --git a/fs/orangefs/orangefs-kernel.h b/fs/orangefs/orangefs-kernel.h
index 2281882f718e..db78ddde0236 100644
--- a/fs/orangefs/orangefs-kernel.h
+++ b/fs/orangefs/orangefs-kernel.h
@@ -570,10 +570,10 @@ extern int hash_table_size;
570 570
571extern const struct address_space_operations orangefs_address_operations; 571extern const struct address_space_operations orangefs_address_operations;
572extern struct backing_dev_info orangefs_backing_dev_info; 572extern struct backing_dev_info orangefs_backing_dev_info;
573extern struct inode_operations orangefs_file_inode_operations; 573extern const struct inode_operations orangefs_file_inode_operations;
574extern const struct file_operations orangefs_file_operations; 574extern const struct file_operations orangefs_file_operations;
575extern struct inode_operations orangefs_symlink_inode_operations; 575extern const struct inode_operations orangefs_symlink_inode_operations;
576extern struct inode_operations orangefs_dir_inode_operations; 576extern const struct inode_operations orangefs_dir_inode_operations;
577extern const struct file_operations orangefs_dir_operations; 577extern const struct file_operations orangefs_dir_operations;
578extern const struct dentry_operations orangefs_dentry_operations; 578extern const struct dentry_operations orangefs_dentry_operations;
579extern const struct file_operations orangefs_devreq_file_operations; 579extern const struct file_operations orangefs_devreq_file_operations;
diff --git a/fs/orangefs/symlink.c b/fs/orangefs/symlink.c
index 6418dd638680..8fecf823f5ba 100644
--- a/fs/orangefs/symlink.c
+++ b/fs/orangefs/symlink.c
@@ -8,7 +8,7 @@
8#include "orangefs-kernel.h" 8#include "orangefs-kernel.h"
9#include "orangefs-bufmap.h" 9#include "orangefs-bufmap.h"
10 10
11struct inode_operations orangefs_symlink_inode_operations = { 11const struct inode_operations orangefs_symlink_inode_operations = {
12 .readlink = generic_readlink, 12 .readlink = generic_readlink,
13 .get_link = simple_get_link, 13 .get_link = simple_get_link,
14 .setattr = orangefs_setattr, 14 .setattr = orangefs_setattr,