]> asedeno.scripts.mit.edu Git - linux.git/commit
fs: fat: Eliminate timespec64_trunc() usage
authorDeepa Dinamani <deepa.kernel@gmail.com>
Tue, 3 Dec 2019 05:19:40 +0000 (21:19 -0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 9 Dec 2019 00:10:51 +0000 (19:10 -0500)
commit97acf83de493ece462b7edccf920f0dbfb857f2b
treee27eb545f786d1127d0df7a400a717171182b7b2
parenteb31e2f63d85d1bec4f7b136f317e03c03db5503
fs: fat: Eliminate timespec64_trunc() usage

timespec64_trunc() is being deleted.

timestamp_truncate() is the replacement api for
timespec64_trunc. timestamp_truncate() additionally clamps
timestamps to make sure the timestamps lie within the
permitted range for the filesystem.

But, fat always truncates the times locally after it obtains
the timestamps from current_time().
Implement a local version here along the lines of existing
truncate functions.

Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Cc: hirofumi@mail.parknet.co.jp
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/fat/misc.c