aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-31 05:36:24 -0400
committerJaegeuk Kim <jaegeuk@kernel.org>2017-09-05 13:50:24 -0400
commitf62fc9f97602d5f52fd574db80d95d71869bfe21 (patch)
tree24147d8e1645eb4e6c7fc0cc46d97f0f0528dd60
parentd3238691ed5f7be29f7b8b7cf7c68bbb2924361d (diff)
f2fs: constify super_operations
super_operations are not supposed to change at runtime. "struct super_block" working with super_operations provided by <linux/fs.h> work with const super_operations. So mark the non-const structs as const Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r--fs/f2fs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 52083d662197..7730316c19c6 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -1546,7 +1546,7 @@ void f2fs_quota_off_umount(struct super_block *sb)
1546} 1546}
1547#endif 1547#endif
1548 1548
1549static struct super_operations f2fs_sops = { 1549static const struct super_operations f2fs_sops = {
1550 .alloc_inode = f2fs_alloc_inode, 1550 .alloc_inode = f2fs_alloc_inode,
1551 .drop_inode = f2fs_drop_inode, 1551 .drop_inode = f2fs_drop_inode,
1552 .destroy_inode = f2fs_destroy_inode, 1552 .destroy_inode = f2fs_destroy_inode,