Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH 1/6] f2fs: fix to clear SBI_IS_CLOSE in __f2fs_remount()
@ 2026-12-01 11:08 Chao Yu
  2026-12-01 11:08 ` [PATCH 2/6] f2fs: quota: fix to recheck quota flush after taking node_change in checkpoint Chao Yu
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Chao Yu @ 2026-12-01 11:08 UTC (permalink / raw)
  To: jaegeuk; +Cc: linux-f2fs-devel, linux-kernel, Chao Yu, stable

From: Chao Yu <chao@kernel.org>

If f2fs_sync_fs() failed during remount ro, we need to clear SBI_IS_CLOSE,
even filesystem has already shut down.

Cc: stable@vger.kernel.org
Fixes: dafb84f092a6 ("f2fs: fix to propagate error from f2fs_sync_fs()")
Signed-off-by: Chao Yu <chao@kernel.org>
---
 fs/f2fs/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 659b646284b9..c1233800f7ba 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -3032,9 +3032,9 @@ static int __f2fs_remount(struct fs_context *fc, struct super_block *sb)
 		set_sbi_flag(sbi, SBI_IS_DIRTY);
 		set_sbi_flag(sbi, SBI_IS_CLOSE);
 		err = f2fs_sync_fs(sb, 1);
+		clear_sbi_flag(sbi, SBI_IS_CLOSE);
 		if (err)
 			goto restore_wb;
-		clear_sbi_flag(sbi, SBI_IS_CLOSE);
 	}
 
 	/*
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-12-01 11:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 11:08 [PATCH 1/6] f2fs: fix to clear SBI_IS_CLOSE in __f2fs_remount() Chao Yu
2026-12-01 11:08 ` [PATCH 2/6] f2fs: quota: fix to recheck quota flush after taking node_change in checkpoint Chao Yu
2026-12-01 11:08 ` [PATCH 3/6] f2fs: cache: fix to submit cached DATA bio when waiting writeback of meta cache Chao Yu
2026-12-01 11:08 ` [PATCH 4/6] f2fs: atomic: fix to keep committed data of atomic file in f2fs_write_failed() Chao Yu
2026-12-01 11:08 ` [PATCH 5/6] f2fs: atomic: fix to avoid preallocating blocks in original inode for atomic file Chao Yu
2026-12-01 11:08 ` [PATCH 6/6] f2fs: atomic: fix to disallow shrinking atomic file via truncate Chao Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox