f2fs: backup raw_super in sbi
authorYunlei He <heyunlei@huawei.com>
Tue, 15 Dec 2015 09:17:20 +0000 (17:17 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 16 Dec 2015 16:58:05 +0000 (08:58 -0800)
commitb39f0de23d8f22253d441b3b68414e9a1d027cf6
treec0ae15b7ea59f9d15ab653396fa4d094d1f94319
parenta1c1e9b74ff380176bf3862c764061e0a7efd9bb
f2fs: backup raw_super in sbi

f2fs use fields of f2fs_super_block struct directly in a grabbed buffer.

Once the buffer happen to be destroyed (e.g. through dd), it may bring
in unpredictable effect on f2fs.

This patch fixes to allocate additional buffer to store datas of super
block rather than using grabbed block buffer directly.

Signed-off-by: Yunlei He <heyunlei@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c