fat: remove time truncations in vfat_create/vfat_mkdir
authorChung-Chiang Cheng <cccheng@synology.com>
Tue, 3 May 2022 15:25:36 +0000 (23:25 +0800)
committerakpm <akpm@linux-foundation.org>
Thu, 19 May 2022 21:10:31 +0000 (14:10 -0700)
commit1213375077451337c2381a8b5b88502a3fc394a2
tree63100a4421c129c8f9e9ca730970d2d10022d75a
parent30abce053f811f52688a5b739c3e4ba98d34070d
fat: remove time truncations in vfat_create/vfat_mkdir

All the timestamps in vfat_create() and vfat_mkdir() come from
fat_time_fat2unix() which ensures time granularity.  We don't need to
truncate them to fit FAT's format.

Moreover, fat_truncate_crtime() and fat_timespec64_trunc_10ms() are also
removed because there is no caller anymore.

Link: https://lkml.kernel.org/r/20220503152536.2503003-4-cccheng@synology.com
Signed-off-by: Chung-Chiang Cheng <cccheng@synology.com>
Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/fat/fat.h
fs/fat/misc.c
fs/fat/namei_vfat.c