Blame SOURCES/0035-fs-ntfs3-Remove-unnecesarry-remount-flag-handling.patch

Kmods SIG 8b815c
From c2c389fd6c6b0393549578997744b03822dd2b24 Mon Sep 17 00:00:00 2001
Kmods SIG 8b815c
From: Kari Argillander <kari.argillander@gmail.com>
Kmods SIG 8b815c
Date: Tue, 7 Sep 2021 18:35:50 +0300
Kmods SIG 8b815c
Subject: [Backport c2c389fd6c6b] src: Remove unnecesarry remount flag
Kmods SIG 8b815c
 handling
Kmods SIG 8b815c
Kmods SIG 8b815c
Remove unnecesarry remount flag handling. This does not do anything for
Kmods SIG 8b815c
this driver. We have already set SB_NODIRATIME when we fill super. Also
Kmods SIG 8b815c
noatime should be set from mount option. Now for some reson we try to
Kmods SIG 8b815c
set it when remounting.
Kmods SIG 8b815c
Kmods SIG 8b815c
Lazytime part looks like it is copied from f2fs and there is own mount
Kmods SIG 8b815c
parameter for it. That is why they use it. We do not set lazytime
Kmods SIG 8b815c
anywhere in our code. So basically this just blocks lazytime when
Kmods SIG 8b815c
remounting.
Kmods SIG 8b815c
Kmods SIG 8b815c
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Kmods SIG 8b815c
Reviewed-by: Christoph Hellwig <hch@lst.de>
Kmods SIG 8b815c
Signed-off-by: Kari Argillander <kari.argillander@gmail.com>
Kmods SIG 8b815c
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Kmods SIG 8b815c
---
Kmods SIG 8b815c
 src/super.c | 2 --
Kmods SIG 8b815c
 1 file changed, 2 deletions(-)
Kmods SIG 8b815c
Kmods SIG 8b815c
diff --git a/src/super.c b/src/super.c
Kmods SIG 8b815c
index a18b99a3e3b57b63aa18c18d8183bebfebd8788e..6cb689605089e2a592143a2b4154a97211f39c6c 100644
Kmods SIG 8b815c
--- a/src/super.c
Kmods SIG 8b815c
+++ b/src/super.c
Kmods SIG 8b815c
@@ -417,8 +417,6 @@ static int ntfs_remount(struct super_block *sb, int *flags, char *data)
Kmods SIG 8b815c
 
Kmods SIG 8b815c
 	clear_mount_options(&old_opts);
Kmods SIG 8b815c
 
Kmods SIG 8b815c
-	*flags = (*flags & ~SB_LAZYTIME) | (sb->s_flags & SB_LAZYTIME) |
Kmods SIG 8b815c
-		 SB_NODIRATIME | SB_NOATIME;
Kmods SIG 8b815c
 	ntfs_info(sb, "re-mounted. Opts: %s", orig_data);
Kmods SIG 8b815c
 	err = 0;
Kmods SIG 8b815c
 	goto out;
Kmods SIG 8b815c
-- 
Kmods SIG 8b815c
2.31.1
Kmods SIG 8b815c