fs: add timespec64_truncate()
authorDeepa Dinamani <deepa.kernel@gmail.com>
Mon, 23 Apr 2018 03:18:46 +0000 (20:18 -0700)
committerDeepa Dinamani <deepa.kernel@gmail.com>
Fri, 25 May 2018 22:31:09 +0000 (15:31 -0700)
commit8efd6894ff089adeeac7cb9f32125b85d963d1bc
treeba9af4e1fa02f46279683236e1a5c9407d12d6d0
parent771c577c23bac90597c685971d7297ea00f99d11
fs: add timespec64_truncate()

As vfs moves to using struct timespec64 to represent times,
update the argument to timespec_truncate() to use
struct timespec64. Also change the name of the function.
The rest of the implementation logic is the same.

Move this to fs/inode.c instead of kernel/time/time.c as all the
users of this api are filesystems.

Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Cc: <viro@zeniv.linux.org.uk>
fs/inode.c
include/linux/fs.h