aboutsummaryrefslogtreecommitdiff
path: root/fs/f2fs
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-31 15:06:24 +0530
committerMister Oyster <oysterized@gmail.com>2017-10-04 15:35:26 +0200
commit20033429f77017c355b3523f4dcceb1b1ac11184 (patch)
tree17b4490ec3c5bb2d5f857715e8ccc7b7a1c7c3ee /fs/f2fs
parent458163bbd7e00b2c9d4117b2683a61bb3365a8e7 (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>
Diffstat (limited to 'fs/f2fs')
-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 a4a968187..a5244fa11 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -1559,7 +1559,7 @@ void f2fs_quota_off_umount(struct super_block *sb)
}
#endif
-static struct super_operations f2fs_sops = {
+static const struct super_operations f2fs_sops = {
.alloc_inode = f2fs_alloc_inode,
.drop_inode = f2fs_drop_inode,
.destroy_inode = f2fs_destroy_inode,