mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
BACKPORT: f2fs: fix wrong condition check when failing metapage read
This patch fixes wrong initialization.
Bug: 239451498
Fixes: 50c63009f6 ("f2fs: avoid an infinite loop in f2fs_sync_dirty_inodes")
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit 6dff2f6fa8278c1f0bdd90cd07c3a1d88d687a33)
Change-Id: I27aa190a58d59558a49e8cd35c2f7a94318d7b0d
This commit is contained in:
committed by
Treehugger Robot
parent
9f4fae40a9
commit
ffe2cbbff9
@@ -98,8 +98,8 @@ repeat:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (unlikely(!PageUptodate(page))) {
|
if (unlikely(!PageUptodate(page))) {
|
||||||
if (page->index == sbi->metapage_eio_ofs &&
|
if (page->index == sbi->metapage_eio_ofs) {
|
||||||
sbi->metapage_eio_cnt++ == MAX_RETRY_META_PAGE_EIO) {
|
if (sbi->metapage_eio_cnt++ == MAX_RETRY_META_PAGE_EIO)
|
||||||
set_ckpt_flags(sbi, CP_ERROR_FLAG);
|
set_ckpt_flags(sbi, CP_ERROR_FLAG);
|
||||||
} else {
|
} else {
|
||||||
sbi->metapage_eio_ofs = page->index;
|
sbi->metapage_eio_ofs = page->index;
|
||||||
|
|||||||
Reference in New Issue
Block a user