diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-02-26 13:54:10 +0100 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2016-02-26 16:18:39 +0100 |
commit | be81ce48b262e2164d64a1354c618571b0c9cd09 (patch) | |
tree | 7a87804479823af766d1595c76392501e745490a /fs/orangefs/orangefs-kernel.h | |
parent | orangefs: clean up fill_default_sys_attrs (diff) | |
download | linux-be81ce48b262e2164d64a1354c618571b0c9cd09.tar.xz linux-be81ce48b262e2164d64a1354c618571b0c9cd09.zip |
orangefs: avoid time conversion function
The new orangefs code uses a helper function to read a time field to
its private structures from struct iattr. This will conflict with the
move to 64-bit timestamps in the kernel and is generally not necessary.
This replaces the conversion with a simple cast to time64_t that shows
what is going on. As the orangefs-internal representation already uses
64-bit timestamps, there should be no ambiguity to negative values,
and the cast ensures that we treat them as times before 1970 on both
32-bit and 64-bit architectures, rather than times after 2038. This
patch keeps that behavior.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/orangefs-kernel.h')
-rw-r--r-- | fs/orangefs/orangefs-kernel.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/orangefs/orangefs-kernel.h b/fs/orangefs/orangefs-kernel.h index 785c9a4ef834..b6f52e3fee7f 100644 --- a/fs/orangefs/orangefs-kernel.h +++ b/fs/orangefs/orangefs-kernel.h @@ -555,11 +555,6 @@ int orangefs_unmount_sb(struct super_block *sb); bool orangefs_cancel_op_in_progress(struct orangefs_kernel_op_s *op); -static inline __u64 orangefs_convert_time_field(const struct timespec *ts) -{ - return (__u64)ts->tv_sec; -} - int orangefs_normalize_to_errno(__s32 error_code); extern struct mutex devreq_mutex; |