mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] gfs2: call ktime_get_coarse_real_ts64() directly
@ 2018-06-20 14:28 Arnd Bergmann
  2018-06-21 15:11 ` Bob Peterson
  0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2018-06-20 14:28 UTC (permalink / raw)
  To: Bob Peterson, Andreas Gruenbacher
  Cc: y2038, Arnd Bergmann, Abhi Das, Steven Whitehouse, cluster-devel,
	linux-kernel

current_kernel_time64() is now just a deprecated wrapper around
ktime_get_coarse_real_ts64(), so let's just call that directly.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 fs/gfs2/log.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/gfs2/log.c b/fs/gfs2/log.c
index 0248835625f1..c7b1c0f75a55 100644
--- a/fs/gfs2/log.c
+++ b/fs/gfs2/log.c
@@ -689,7 +689,7 @@ void gfs2_write_log_header(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd,
 	hash = ~crc32(~0, lh, LH_V1_SIZE);
 	lh->lh_hash = cpu_to_be32(hash);
 
-	tv = current_kernel_time64();
+	ktime_get_coarse_real_ts64(&tv);
 	lh->lh_nsec = cpu_to_be32(tv.tv_nsec);
 	lh->lh_sec = cpu_to_be64(tv.tv_sec);
 	addr = gfs2_log_bmap(sdp);
-- 
2.9.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] gfs2: call ktime_get_coarse_real_ts64() directly
  2018-06-20 14:28 [PATCH] gfs2: call ktime_get_coarse_real_ts64() directly Arnd Bergmann
@ 2018-06-21 15:11 ` Bob Peterson
  0 siblings, 0 replies; 2+ messages in thread
From: Bob Peterson @ 2018-06-21 15:11 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Andreas Gruenbacher, y2038, Abhi Das, Steven Whitehouse,
	cluster-devel, linux-kernel

----- Original Message -----
> current_kernel_time64() is now just a deprecated wrapper around
> ktime_get_coarse_real_ts64(), so let's just call that directly.
> 
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
Hi,

Thanks. This is now pushed to the for-next branch of the linux-gfs2 tree:
https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git/commit/fs/gfs2?h=for-next&id=ee9c7f9ae3d4fb9fb5c9cacbe3880d5dd66feb16

Regards,

Bob Peterson
Red Hat File Systems

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-06-21 15:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-20 14:28 [PATCH] gfs2: call ktime_get_coarse_real_ts64() directly Arnd Bergmann
2018-06-21 15:11 ` Bob Peterson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®