f2fs: fix to determine start_cp_addr by sbi->cur_cp_pack
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 24 Nov 2016 20:45:15 +0000 (12:45 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jan 2017 09:40:14 +0000 (10:40 +0100)
commit01e15b3328c4dc2073bc5080f1b31f21370be3f8
tree770842560041703864d96729f8f33a0d8473ce23
parent027611ef345d118310c1334b5d25b27ff95da684
f2fs: fix to determine start_cp_addr by sbi->cur_cp_pack

commit 8508e44ae98622f841f5ef29d0bf3d5db4e0c1cc upstream.

We don't guarantee cp_addr is fixed by cp_version.
This is to sync with f2fs-tools.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/checkpoint.c
fs/f2fs/f2fs.h