diff options
| author | Deepa Dinamani <deepa.kernel@gmail.com> | 2018-04-22 23:18:46 -0400 |
|---|---|---|
| committer | Deepa Dinamani <deepa.kernel@gmail.com> | 2018-05-25 18:31:09 -0400 |
| commit | 8efd6894ff089adeeac7cb9f32125b85d963d1bc (patch) | |
| tree | ba9af4e1fa02f46279683236e1a5c9407d12d6d0 /include/linux/fs.h | |
| parent | 771c577c23bac90597c685971d7297ea00f99d11 (diff) | |
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.h | 1 |
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) | |||
| 1476 | inode->i_gid = make_kgid(inode->i_sb->s_user_ns, gid); | 1476 | inode->i_gid = make_kgid(inode->i_sb->s_user_ns, gid); |
| 1477 | } | 1477 | } |
| 1478 | 1478 | ||
| 1479 | extern struct timespec64 timespec64_trunc(struct timespec64 t, unsigned gran); | ||
| 1479 | extern struct timespec current_time(struct inode *inode); | 1480 | extern struct timespec current_time(struct inode *inode); |
| 1480 | 1481 | ||
| 1481 | /* | 1482 | /* |
