aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@sandeen.net>2020-04-17 14:43:49 +0900
committerNamjae Jeon <namjae.jeon@samsung.com>2020-04-22 20:14:06 +0900
commit674a9985b8e35288225f2b67829a7dee3bf761da (patch)
tree52d5e49dedad15c656fdecf0a8d1b6ee49c43550 /fs
parentexfat: remove 'bps' mount-option (diff)
downloadwireguard-linux-674a9985b8e35288225f2b67829a7dee3bf761da.tar.xz
wireguard-linux-674a9985b8e35288225f2b67829a7dee3bf761da.zip
exfat: properly set s_time_gran
The s_time_gran superblock field indicates the on-disk nanosecond granularity of timestamps, and for exfat that seems to be 10ms, so set s_time_gran to 10000000ns. Without this, in-memory timestamps change when they get re-read from disk. Signed-off-by: Eric Sandeen <sandeen@sandeen.net> Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/exfat/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/exfat/super.c b/fs/exfat/super.c
index cb5eac38102d..ee42ecf59059 100644
--- a/fs/exfat/super.c
+++ b/fs/exfat/super.c
@@ -529,7 +529,7 @@ static int exfat_fill_super(struct super_block *sb, struct fs_context *fc)
sb->s_magic = EXFAT_SUPER_MAGIC;
sb->s_op = &exfat_sops;
- sb->s_time_gran = 1;
+ sb->s_time_gran = 10 * NSEC_PER_MSEC;
sb->s_time_min = EXFAT_MIN_TIMESTAMP_SECS;
sb->s_time_max = EXFAT_MAX_TIMESTAMP_SECS;