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

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