diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-14 18:46:32 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-29 19:07:00 -0400 |
commit | 6f3fc1070be028170b0f4c0c326480c9fcd1da3e (patch) | |
tree | 6792dbc6f732a63aa591a47fcad90c74ebd0ccff | |
parent | 90090ae645f6affba0d4c8413749df96dde0a526 (diff) |
orangefs: constify inode_operations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/orangefs/inode.c | 2 | ||||
-rw-r--r-- | fs/orangefs/namei.c | 2 | ||||
-rw-r--r-- | fs/orangefs/orangefs-kernel.h | 6 | ||||
-rw-r--r-- | fs/orangefs/symlink.c | 2 |
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 */ |
297 | struct inode_operations orangefs_file_inode_operations = { | 297 | const 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 */ |
441 | struct inode_operations orangefs_dir_inode_operations = { | 441 | const 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 | ||
571 | extern const struct address_space_operations orangefs_address_operations; | 571 | extern const struct address_space_operations orangefs_address_operations; |
572 | extern struct backing_dev_info orangefs_backing_dev_info; | 572 | extern struct backing_dev_info orangefs_backing_dev_info; |
573 | extern struct inode_operations orangefs_file_inode_operations; | 573 | extern const struct inode_operations orangefs_file_inode_operations; |
574 | extern const struct file_operations orangefs_file_operations; | 574 | extern const struct file_operations orangefs_file_operations; |
575 | extern struct inode_operations orangefs_symlink_inode_operations; | 575 | extern const struct inode_operations orangefs_symlink_inode_operations; |
576 | extern struct inode_operations orangefs_dir_inode_operations; | 576 | extern const struct inode_operations orangefs_dir_inode_operations; |
577 | extern const struct file_operations orangefs_dir_operations; | 577 | extern const struct file_operations orangefs_dir_operations; |
578 | extern const struct dentry_operations orangefs_dentry_operations; | 578 | extern const struct dentry_operations orangefs_dentry_operations; |
579 | extern const struct file_operations orangefs_devreq_file_operations; | 579 | extern 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 | ||
11 | struct inode_operations orangefs_symlink_inode_operations = { | 11 | const 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, |