f2fs: recover superblock at RW remounts
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 24 Mar 2016 00:05:27 +0000 (17:05 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 15 Apr 2016 15:49:47 +0000 (08:49 -0700)
commitdf728b0f6954c38545f4bf12dedeeb9e07469a94
treef7cbf73658f73afd742e80866e266e852a5293ef
parentf2353d7bd4221dfe0e230c5be49038d4a57d97e9
f2fs: recover superblock at RW remounts

This patch adds a sbi flag, SBI_NEED_SB_WRITE, which indicates it needs to
recover superblock when (re)mounting as RW. This is set only when f2fs is
mounted as RO.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/super.c