From: Chao Yu <chao@kernel.org>
To: jaegeuk@kernel.org
Cc: linux-f2fs-devel@lists.sourceforge.net,
linux-kernel@vger.kernel.org, Chao Yu <chao@kernel.org>,
stable@vger.kernel.org
Subject: [PATCH 1/6] f2fs: fix to clear SBI_IS_CLOSE in __f2fs_remount()
Date: Tue, 1 Dec 2026 11:08:43 +0000 [thread overview]
Message-ID: <20261201110842.1825797-7-chao@kernel.org> (raw)
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
WARNING: multiple messages have this Message-ID (diff)
From: Chao Yu via Linux-f2fs-devel <linux-f2fs-devel@lists.sourceforge.net>
To: jaegeuk@kernel.org
Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org,
linux-f2fs-devel@lists.sourceforge.net
Subject: [f2fs-dev] [PATCH 1/6] f2fs: fix to clear SBI_IS_CLOSE in __f2fs_remount()
Date: Tue, 1 Dec 2026 11:08:43 +0000 [thread overview]
Message-ID: <20261201110842.1825797-7-chao@kernel.org> (raw)
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
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
next reply other threads:[~2026-12-01 11:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 11:08 Chao Yu [this message]
2026-12-01 11:08 ` [f2fs-dev] [PATCH 1/6] f2fs: fix to clear SBI_IS_CLOSE in __f2fs_remount() Chao Yu via Linux-f2fs-devel
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 ` [f2fs-dev] " Chao Yu via Linux-f2fs-devel
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 ` [f2fs-dev] " Chao Yu via Linux-f2fs-devel
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 ` [f2fs-dev] " Chao Yu via Linux-f2fs-devel
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 ` [f2fs-dev] " Chao Yu via Linux-f2fs-devel
2026-12-01 11:08 ` [PATCH 6/6] f2fs: atomic: fix to disallow shrinking atomic file via truncate Chao Yu
2026-12-01 11:08 ` [f2fs-dev] " Chao Yu via Linux-f2fs-devel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261201110842.1825797-7-chao@kernel.org \
--to=chao@kernel.org \
--cc=jaegeuk@kernel.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.