summaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h
diff options
context:
space:
mode:
authorNeilBrown2018-02-12 22:22:36 +0100
committerGreg Kroah-Hartman2018-02-16 15:19:10 +0100
commit672b63e55bdee71150e3cc472f6294e0535a95ad (patch)
tree4b3c119fbce03abf0ccf2ef77139526e6189c230 /drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h
parentstaging: lustre: replace simple cases of l_wait_event() with wait_event(). (diff)
downloadkernel-qcow2-linux-672b63e55bdee71150e3cc472f6294e0535a95ad.tar.gz
kernel-qcow2-linux-672b63e55bdee71150e3cc472f6294e0535a95ad.tar.xz
kernel-qcow2-linux-672b63e55bdee71150e3cc472f6294e0535a95ad.zip
staging: lustre: discard cfs_time_seconds()
cfs_time_seconds() converts a number of seconds to the matching number of jiffies. The standard way to do this in Linux is "* HZ". So discard cfs_time_seconds() and use "* HZ" instead. Reviewed-by: James Simmons <jsimmons@infradead.org> Signed-off-by: NeilBrown <neilb@suse.com> Reviewed-by: Patrick Farrell <paf@cray.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h')
-rw-r--r--drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h b/drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h
index 1b98f0953afb..9290a19429e7 100644
--- a/drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h
+++ b/drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h
@@ -66,8 +66,8 @@ extern unsigned int libcfs_panic_on_lbug;
# define DEBUG_SUBSYSTEM S_UNDEFINED
#endif
-#define CDEBUG_DEFAULT_MAX_DELAY (cfs_time_seconds(600)) /* jiffies */
-#define CDEBUG_DEFAULT_MIN_DELAY ((cfs_time_seconds(1) + 1) / 2) /* jiffies */
+#define CDEBUG_DEFAULT_MAX_DELAY (600 * HZ) /* jiffies */
+#define CDEBUG_DEFAULT_MIN_DELAY ((HZ + 1) / 2) /* jiffies */
#define CDEBUG_DEFAULT_BACKOFF 2
struct cfs_debug_limit_state {
unsigned long cdls_next;