f2fs: skip committing valid superblock
authorChao Yu <chao2.yu@samsung.com>
Mon, 8 Jun 2015 05:28:03 +0000 (13:28 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 8 Jun 2015 18:20:51 +0000 (11:20 -0700)
commitc5bda1c8b13ad7840ae0e8c9a2926df686ba6e06
tree8de3110094792cbbab37362724cf30f6fe758551
parent09d54cdd207bb3b07e00983f2f50bd68c354ce31
f2fs: skip committing valid superblock

In recovery procedure for superblock, we try to write data of valid
superblock into invalid one for recovery, work should be finished here,
but then still we will write the valid one with its original data.
This operation is not needed. Let's skip doing this unnecessary work.

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