Commit f62fc9f9 authored by Arvind Yadav's avatar Arvind Yadav Committed by Jaegeuk Kim

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: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent d3238691
...@@ -1546,7 +1546,7 @@ void f2fs_quota_off_umount(struct super_block *sb) ...@@ -1546,7 +1546,7 @@ void f2fs_quota_off_umount(struct super_block *sb)
} }
#endif #endif
static struct super_operations f2fs_sops = { static const struct super_operations f2fs_sops = {
.alloc_inode = f2fs_alloc_inode, .alloc_inode = f2fs_alloc_inode,
.drop_inode = f2fs_drop_inode, .drop_inode = f2fs_drop_inode,
.destroy_inode = f2fs_destroy_inode, .destroy_inode = f2fs_destroy_inode,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment