All of lore.kernel.org
 help / color / mirror / Atom feed
* [f2fs-dev] [PATCH] Revert "f2fs: remove unreachable lazytime mount option parsing"
@ 2024-11-12  1:08 ` Jaegeuk Kim
  0 siblings, 0 replies; 24+ messages in thread
From: Jaegeuk Kim via Linux-f2fs-devel @ 2024-11-12  1:08 UTC (permalink / raw)
  To: linux-kernel, linux-f2fs-devel; +Cc: Jaegeuk Kim, Daniel Rosenberg, stable

This reverts commit 54f43a10fa257ad4af02a1d157fefef6ebcfa7dc.

The above commit broke the lazytime mount, given

mount("/dev/vdb", "/mnt/test", "f2fs", 0, "lazytime");

CC: stable@vger.kernel.org # 6.11+
Signed-off-by: Daniel Rosenberg <drosen@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
---
 fs/f2fs/super.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 49519439b770..35c4394e4fc6 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -150,6 +150,8 @@ enum {
 	Opt_mode,
 	Opt_fault_injection,
 	Opt_fault_type,
+	Opt_lazytime,
+	Opt_nolazytime,
 	Opt_quota,
 	Opt_noquota,
 	Opt_usrquota,
@@ -226,6 +228,8 @@ static match_table_t f2fs_tokens = {
 	{Opt_mode, "mode=%s"},
 	{Opt_fault_injection, "fault_injection=%u"},
 	{Opt_fault_type, "fault_type=%u"},
+	{Opt_lazytime, "lazytime"},
+	{Opt_nolazytime, "nolazytime"},
 	{Opt_quota, "quota"},
 	{Opt_noquota, "noquota"},
 	{Opt_usrquota, "usrquota"},
@@ -922,6 +926,12 @@ static int parse_options(struct super_block *sb, char *options, bool is_remount)
 			f2fs_info(sbi, "fault_type options not supported");
 			break;
 #endif
+		case Opt_lazytime:
+			sb->s_flags |= SB_LAZYTIME;
+			break;
+		case Opt_nolazytime:
+			sb->s_flags &= ~SB_LAZYTIME;
+			break;
 #ifdef CONFIG_QUOTA
 		case Opt_quota:
 		case Opt_usrquota:
-- 
2.47.0.277.g8800431eea-goog



_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

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

end of thread, other threads:[~2024-11-21 18:38 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-12  1:08 [f2fs-dev] [PATCH] Revert "f2fs: remove unreachable lazytime mount option parsing" Jaegeuk Kim via Linux-f2fs-devel
2024-11-12  1:08 ` Jaegeuk Kim
2024-11-12 21:39 ` [f2fs-dev] " Jaegeuk Kim via Linux-f2fs-devel
2024-11-12 21:39   ` Jaegeuk Kim
2024-11-19  2:18   ` [f2fs-dev] " Chao Yu via Linux-f2fs-devel
2024-11-19  2:18     ` Chao Yu
2024-11-19 20:48     ` Jaegeuk Kim via Linux-f2fs-devel
2024-11-19 20:48       ` Jaegeuk Kim
2024-11-20  2:57       ` Chao Yu via Linux-f2fs-devel
2024-11-20  2:57         ` Chao Yu
2024-11-20 20:35         ` Jaegeuk Kim via Linux-f2fs-devel
2024-11-20 20:35           ` Jaegeuk Kim
2024-11-20 14:27   ` Eric Sandeen
2024-11-20 14:27     ` Eric Sandeen
2024-11-20 14:52     ` [f2fs-dev] " Eric Sandeen
2024-11-20 14:52       ` Eric Sandeen
2024-11-20 20:38       ` [f2fs-dev] " Jaegeuk Kim via Linux-f2fs-devel
2024-11-20 20:38         ` Jaegeuk Kim
2024-11-21 15:11         ` [f2fs-dev] " Eric Sandeen
2024-11-21 18:37           ` Jaegeuk Kim via Linux-f2fs-devel
2024-11-18 17:00 ` patchwork-bot+f2fs--- via Linux-f2fs-devel
2024-11-18 17:00   ` patchwork-bot+f2fs
2024-11-21  1:15 ` Chao Yu via Linux-f2fs-devel
2024-11-21  1:15   ` Chao Yu

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.