OSDN Git Service

exfat: truncate atimes to 2s granularity
authorEric Sandeen <sandeen@sandeen.net>
Tue, 21 Apr 2020 02:13:10 +0000 (11:13 +0900)
committerNamjae Jeon <namjae.jeon@samsung.com>
Wed, 22 Apr 2020 11:14:06 +0000 (20:14 +0900)
commit81df1ad40644b706a1cdbd28a1471f9f0c0ea3e8
treef91eeffa36abcb5b6c9c67ce33b8e24e07f576d7
parent674a9985b8e35288225f2b67829a7dee3bf761da
exfat: truncate atimes to 2s granularity

The timestamp for access_time has double seconds granularity(There is no
10msIncrement field for access_time unlike create/modify_time).
exfat's atimes are restricted to only 2s granularity so after
we set an atime, round it down to the nearest 2s and set the
sub-second component of the timestamp to 0.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
fs/exfat/exfat_fs.h
fs/exfat/file.c
fs/exfat/misc.c
fs/exfat/namei.c
fs/exfat/super.c