mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
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>
This commit is contained in:
parent
db8bd78e86
commit
b0333de3ff
1 changed files with 1 additions and 1 deletions
2
super.c
2
super.c
|
|
@ -762,7 +762,7 @@ static int exfat_fill_super(struct super_block *sb, void *data, int silent)
|
|||
sb->s_op = &exfat_sops;
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)
|
||||
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;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue