mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
f2fs: fix to clear dirty flag on folio in error path
If node block is corrupted due to chksum mismatch or inconsistent
footer info, it needs to drop clear flag of node folio, in order
to persist inconsistent node data to storage.
Cc: stable@kernel.org
Fixes: b42b179bda ("f2fs: fix to do checksum even if inode page is uptodate")
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
7173538c41
commit
5b86eab84a
|
|
@ -1618,7 +1618,7 @@ static struct folio *__get_node_folio(struct f2fs_sb_info *sbi, pgoff_t nid,
|
|||
if (!err)
|
||||
return folio;
|
||||
out_err:
|
||||
folio_clear_uptodate(folio);
|
||||
clear_node_folio_dirty(folio);
|
||||
out_put_err:
|
||||
/* ENOENT comes from read_node_folio which is not an error. */
|
||||
if (err != -ENOENT)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user