OSDN Git Service

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>
Sat, 26 Jan 2019 08:42:47 +0000 (09:42 +0100)
commite465e93d88cb2a1c17a21acb35de5e589820844b
tree73e2d4b817149ee20db9d97b72222761ebb700f9
parent9213c2b5119ae7cd536b8198ac5ded8c7c74b5c7
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>
[bwh: Backported to 4.4: adjust context]
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/checkpoint.c
fs/f2fs/f2fs.h