From faeeda3a69689f48605561f9e86e5a59b7d6b1fc Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Thu, 3 Sep 2020 16:45:02 -0600 Subject: [PATCH] LU-12931 libcfs: skip cfs_time_seconds() indirection Avoid one level of indirection when calling nsecs_to_jiffies64(). Test-Parameters: trivial Signed-off-by: Andreas Dilger Change-Id: Ib5ff2aae5352bc86d75a8ae2a2a9f1b406887376 Reviewed-on: https://review.whamcloud.com/40145 Tested-by: jenkins Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Jian Yu Reviewed-by: Mike Pershin Reviewed-by: Oleg Drokin --- libcfs/include/libcfs/linux/linux-time.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcfs/include/libcfs/linux/linux-time.h b/libcfs/include/libcfs/linux/linux-time.h index 3934635..454f37e 100644 --- a/libcfs/include/libcfs/linux/linux-time.h +++ b/libcfs/include/libcfs/linux/linux-time.h @@ -214,7 +214,7 @@ static inline ktime_t timespec64_to_ktime(struct timespec64 ts) static inline unsigned long cfs_time_seconds(time64_t seconds) { - return nsecs_to_jiffies(seconds * NSEC_PER_SEC); + return nsecs_to_jiffies64(seconds * NSEC_PER_SEC); } #ifdef HAVE_NEW_DEFINE_TIMER -- 1.8.3.1