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

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