]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: constify super_operations
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Thu, 31 Aug 2017 09:36:24 +0000 (15:06 +0530)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 5 Sep 2017 17:50:24 +0000 (10:50 -0700)
commit415f44a19b2dc482ee16464d2aa52852624d1628
tree24147d8e1645eb4e6c7fc0cc46d97f0f0528dd60
parent6a5a2c9138f0ebd4e10507cf7e971c15d52f7383
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>
fs/f2fs/super.c