Whamcloud - gitweb
LU-9019 libcfs: remove the remaining cfs_time wrappers 68/31068/8
authorJames Simmons <uja.ornl@yahoo.com>
Thu, 12 Apr 2018 14:00:11 +0000 (10:00 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 6 May 2018 03:40:33 +0000 (03:40 +0000)
commitfdb5d3d508edb6d76b6fcc1f23d5d9649211ab64
treefd8c9cd4ce736202117e164f5d695b07775ddd80
parent21501dedf64e027b529a3382d92bf4bf8039638c
LU-9019 libcfs: remove the remaining cfs_time wrappers

In the lustre code various small bits are left of the libcfs time
wrappers. Remove all the remaining wrappers except for the inline
function cfs_time_seconds(). For cfs_time_seconds() we have to
move to nsec_to_jiffies() since msecs_to_jiffies() has become an
inline function in jiffies.h which means HZ can be different on
the installation node verses what the target node is configured
for. Since nsec_to_jiffies() is a normal built in kernel function
we can avoid the LU-5443 issues. For cfs_duration_secs() we use
the internal kernel function jiffies_to_msec() since only the
newest kernels have jiffies_to_nsec() and that function is just
a wrapper around jiffies_to_msec(). All the reset of the libcfs
time abstractions are gone.

Change-Id: I166973071304f1d55a15b1e21fcfbe434ff58199
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/31068
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Ben Evans <bevans@cray.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
27 files changed:
contrib/scripts/spelling.txt
libcfs/include/libcfs/Makefile.am
libcfs/include/libcfs/libcfs.h
libcfs/include/libcfs/libcfs_time.h [deleted file]
libcfs/include/libcfs/linux/linux-time.h
libcfs/libcfs/debug.c
libcfs/libcfs/linux/linux-prim.c
libcfs/libcfs/module.c
libcfs/libcfs/tracefile.c
lnet/include/lnet/lib-lnet.h
lnet/klnds/gnilnd/gnilnd.h
lnet/klnds/o2iblnd/o2iblnd.h
lnet/lnet/router_proc.c
lustre/include/lprocfs_status.h
lustre/include/lustre_dlm.h
lustre/include/lustre_lib.h
lustre/include/lustre_net.h
lustre/ldlm/ldlm_lib.c
lustre/ldlm/ldlm_lockd.c
lustre/ldlm/ldlm_pool.c
lustre/lod/lod_internal.h
lustre/lod/lod_qos.c
lustre/obdclass/jobid.c
lustre/obdclass/linkea.c
lustre/obdclass/upcall_cache.c
lustre/ptlrpc/import.c
lustre/ptlrpc/service.c