Whamcloud - gitweb
LU-12931 libcfs: skip cfs_time_seconds() indirection 45/40145/3
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 3 Sep 2020 22:45:02 +0000 (16:45 -0600)
committerOleg Drokin <green@whamcloud.com>
Mon, 19 Oct 2020 03:13:06 +0000 (03:13 +0000)
Avoid one level of indirection when calling nsecs_to_jiffies64().

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ib5ff2aae5352bc86d75a8ae2a2a9f1b406887376
Reviewed-on: https://review.whamcloud.com/40145
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/include/libcfs/linux/linux-time.h

index 3934635..454f37e 100644 (file)
@@ -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