f2fs: fix to recover inode's i_gc_failures during POR
authorChao Yu <yuchao0@huawei.com>
Tue, 25 Sep 2018 07:36:00 +0000 (15:36 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Nov 2019 12:05:16 +0000 (13:05 +0100)
commitb619de076f9c9a17cb454f5e54b9c13740125c07
tree49c2194918ccc614106fa440cfc5e7aab41ff937
parent23848022460fa4dc88b0b69b819c9fb15c75ff56
f2fs: fix to recover inode's i_gc_failures during POR

[ Upstream commit 7de36cf3e4087207f42a88992f8cb615a1bd902e ]

inode.i_gc_failures is used to indicate that skip count of migrating
on blocks of inode, we should guarantee it can be recovered in sudden
power-off case.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/recovery.c