FAILED: patch "[PATCH] f2fs: fix to clear dirty flag on folio in error path" failed to apply to 5.10-stable tree
Subsystems (2)
[email protected]
maintainerThe patch below does not apply to the 5.10-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.10.y
git checkout FETCH_HEAD
git cherry-pick -x 5b86eab84ac8e9289b5afc52ef88ab18ba5bacab
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026090931-lustily-onstage-ff66@gregkh' --subject-prefix 'PATCH 5.10.y' 'HEAD^..'
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 5b86eab84ac8e9289b5afc52ef88ab18ba5bacab Mon Sep 17 00:00:00 2001
From: Chao Yu <[email protected]>
Date: Wed, 5 Aug 2026 12:29:20 +0000
Subject: [PATCH] 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.
fs/f2fs/node.c +1 -1
@@ -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 )
Sasha Levin
maintainerPATCH 1/1 f2fs: fix to clear dirty flag on folio in error path
From: Chao Yu <[email protected]>
[ Upstream commit 5b86eab84ac8e9289b5afc52ef88ab18ba5bacab ]
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.
--- fs/f2fs/node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/node.c +1 -1
@@ -1415,7 +1415,7 @@ static struct page *__get_node_page(struct f2fs_sb_info *sbi, pgoff_t nid,set_sbi_flag (sbi,SBI_NEED_FSCK ); err = -EINVAL ; out_err: -ClearPageUptodate (page); +clear_node_page_dirty (page);f2fs_put_page (page,1 );return ERR_PTR (err); }
Signature · 1 line
2.53.0