diff options
author | Deepa Dinamani <deepa.kernel@gmail.com> | 2018-01-22 05:04:25 +0300 |
---|---|---|
committer | Deepa Dinamani <deepa.kernel@gmail.com> | 2019-08-30 17:27:17 +0300 |
commit | 50e17c000c467fbc927fc001df99beb4027a5323 (patch) | |
tree | fd820b8e8992477f3fa474f152358ed8c09247fd /fs/splice.c | |
parent | 188d20bcd1ebd8277d9b8a79525bd66b66d40a2a (diff) | |
download | linux-50e17c000c467fbc927fc001df99beb4027a5323.tar.xz |
vfs: Add timestamp_truncate() api
timespec_trunc() function is used to truncate a
filesystem timestamp to the right granularity.
But, the function does not clamp tv_sec part of the
timestamps according to the filesystem timestamp limits.
The replacement api: timestamp_truncate() also alters the
signature of the function to accommodate filesystem
timestamp clamping according to flesystem limits.
Note that the tv_nsec part is set to 0 if tv_sec is not within
the range supported for the filesystem.
Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Acked-by: Jeff Layton <jlayton@kernel.org>
Diffstat (limited to 'fs/splice.c')
0 files changed, 0 insertions, 0 deletions