cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: fabbione@sourceware.org <fabbione@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/gfs-kernel/src/gfs main.c
Date: 28 Jan 2008 06:21:21 -0000	[thread overview]
Message-ID: <20080128062121.23480.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	fabbione at sourceware.org	2008-01-28 06:21:21

Modified files:
	gfs-kernel/src/gfs: main.c 

Log message:
	EXPORT_SYMBOL(xtime) has been removed in 2.6.24.
	
	Let's use the exact same value (tv_nsec) just from another source.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/main.c.diff?cvsroot=cluster&r1=1.11&r2=1.12

--- cluster/gfs-kernel/src/gfs/main.c	2007/08/22 08:58:45	1.11
+++ cluster/gfs-kernel/src/gfs/main.c	2008/01/28 06:21:21	1.12
@@ -21,6 +21,7 @@
 #include <linux/proc_fs.h>
 #include <linux/module.h>
 #include <linux/init.h>
+#include <linux/time.h>
 
 #include "gfs.h"
 #include "ops_fstype.h"
@@ -36,6 +37,7 @@
 int __init init_gfs_fs(void)
 {
 	int error;
+	struct timespec tv;
 
 /*	gfs2_init_lmh(); gfs2 should do this for us*/
 
@@ -46,7 +48,8 @@
 	if (error)
 		goto fail;
 
-	gfs_random_number = xtime.tv_nsec;
+	getnstimeofday(&tv);
+	gfs_random_number = tv.tv_nsec;
 
 	gfs_glock_cachep = kmem_cache_create("gfs_glock", sizeof(struct gfs_glock),
 					     0, 0,



                 reply	other threads:[~2008-01-28  6:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080128062121.23480.qmail@sourceware.org \
    --to=fabbione@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).