Blame SOURCES/0017-exfat-properly-set-s_time_gran.patch

Kmods SIG 9e3ffb
From 674a9985b8e35288225f2b67829a7dee3bf761da Mon Sep 17 00:00:00 2001
Kmods SIG 9e3ffb
From: Eric Sandeen <sandeen@sandeen.net>
Kmods SIG 9e3ffb
Date: Fri, 17 Apr 2020 14:43:49 +0900
Kmods SIG 9e3ffb
Subject: [Backport 674a9985b8e3] exfat: properly set s_time_gran
Kmods SIG 9e3ffb
Kmods SIG 9e3ffb
The s_time_gran superblock field indicates the on-disk nanosecond
Kmods SIG 9e3ffb
granularity of timestamps, and for exfat that seems to be 10ms, so
Kmods SIG 9e3ffb
set s_time_gran to 10000000ns. Without this, in-memory timestamps
Kmods SIG 9e3ffb
change when they get re-read from disk.
Kmods SIG 9e3ffb
Kmods SIG 9e3ffb
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Kmods SIG 9e3ffb
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Kmods SIG 9e3ffb
---
Kmods SIG 9e3ffb
 src/super.c | 2 +-
Kmods SIG 9e3ffb
 1 file changed, 1 insertion(+), 1 deletion(-)
Kmods SIG 9e3ffb
Kmods SIG 9e3ffb
diff --git a/src/super.c b/src/super.c
Kmods SIG 9e3ffb
index cb5eac38102d92d9312667fdaa722f6a00d2ad16..ee42ecf59059a6c9bf61f5b6ec19efde21a4d897 100644
Kmods SIG 9e3ffb
--- a/src/super.c
Kmods SIG 9e3ffb
+++ b/src/super.c
Kmods SIG 9e3ffb
@@ -529,7 +529,7 @@ static int exfat_fill_super(struct super_block *sb, struct fs_context *fc)
Kmods SIG 9e3ffb
 	sb->s_magic = EXFAT_SUPER_MAGIC;
Kmods SIG 9e3ffb
 	sb->s_op = &exfat_sops;
Kmods SIG 9e3ffb
 
Kmods SIG 9e3ffb
-	sb->s_time_gran = 1;
Kmods SIG 9e3ffb
+	sb->s_time_gran = 10 * NSEC_PER_MSEC;
Kmods SIG 9e3ffb
 	sb->s_time_min = EXFAT_MIN_TIMESTAMP_SECS;
Kmods SIG 9e3ffb
 	sb->s_time_max = EXFAT_MAX_TIMESTAMP_SECS;
Kmods SIG 9e3ffb
 
Kmods SIG 9e3ffb
-- 
Kmods SIG 9e3ffb
2.31.1
Kmods SIG 9e3ffb