summaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorDeepa Dinamani <deepa.kernel@gmail.com>2018-04-22 20:18:46 -0700
committerDeepa Dinamani <deepa.kernel@gmail.com>2018-05-25 15:31:09 -0700
commit8efd6894ff089adeeac7cb9f32125b85d963d1bc (patch)
treeba9af4e1fa02f46279683236e1a5c9407d12d6d0 /include/linux/fs.h
parent771c577c23bac90597c685971d7297ea00f99d11 (diff)
downloadlinux-stable-8efd6894ff089adeeac7cb9f32125b85d963d1bc.tar.gz
linux-stable-8efd6894ff089adeeac7cb9f32125b85d963d1bc.tar.bz2
linux-stable-8efd6894ff089adeeac7cb9f32125b85d963d1bc.zip
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>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 760d8da1b6c7..7f6997e0dabf 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1476,6 +1476,7 @@ static inline void i_gid_write(struct inode *inode, gid_t gid)
inode->i_gid = make_kgid(inode->i_sb->s_user_ns, gid);
}
+extern struct timespec64 timespec64_trunc(struct timespec64 t, unsigned gran);
extern struct timespec current_time(struct inode *inode);
/*