summaryrefslogtreecommitdiff
path: root/drivers/scsi/fnic/fnic_debugfs.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-01-17 18:16:48 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2018-01-23 04:03:57 +0300
commit22807aa812a65a7b859187e0fc6cfa0802a858c4 (patch)
treef261defe3bc0491ae296345fcf28672061bc1ba0 /drivers/scsi/fnic/fnic_debugfs.c
parente89cabf26e1cdd5c612b6c21547b3e79b4ac1038 (diff)
downloadlinux-22807aa812a65a7b859187e0fc6cfa0802a858c4.tar.xz
scsi: fnic: use 64-bit timestamps
struct timespec is deprecated since it overflows in 2038 on 32-bit architectures, so we should use timespec64 consistently. I'm slightly adapting the format strings here, to make sure we print the nanoseconds with the correct number of leading zeroes. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Satish Kharat <satishkh@cisco.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/fnic/fnic_debugfs.c')
-rw-r--r--drivers/scsi/fnic/fnic_debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/fnic/fnic_debugfs.c b/drivers/scsi/fnic/fnic_debugfs.c
index 9858484dd126..6d3e1cb4fea6 100644
--- a/drivers/scsi/fnic/fnic_debugfs.c
+++ b/drivers/scsi/fnic/fnic_debugfs.c
@@ -614,7 +614,7 @@ static ssize_t fnic_reset_stats_write(struct file *file,
sizeof(struct io_path_stats) - sizeof(u64));
memset(fw_stats_p+1, 0,
sizeof(struct fw_stats) - sizeof(u64));
- getnstimeofday(&stats->stats_timestamps.last_reset_time);
+ ktime_get_real_ts64(&stats->stats_timestamps.last_reset_time);
}
(*ppos)++;