All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nanosecond filesystem support???
@ 2007-02-13  8:38 Jeff Chua
  2007-02-13  8:42 ` Arjan van de Ven
  2007-02-13  8:52 ` Andi Kleen
  0 siblings, 2 replies; 4+ messages in thread
From: Jeff Chua @ 2007-02-13  8:38 UTC (permalink / raw)
  To: Andi Kleen; +Cc: lkml, Arjan van de Ven, Miquel van Smoorenburg, Linus Torvalds


On 2/12/07, Andi Kleen <ak@suse.de> wrote:

> The bigger problem is getting a file system that support it.


Andi,

It seems that the part that's not returning nanosecond is in the code 
below. I've modified it, and now stat() is returning st_mtim.tv_nsec 
correctly.

I've tested it on ext2 and reiserfs, and both seems to be working.


I don't know why "t.tv_nsec = 0;" was set in the code. Any idea?



Thanks,
Jeff.


--- linux/kernel/time.c.org	2007-02-13 08:43:08 +0800
+++ linux/kernel/time.c	2007-02-13 08:52:29 +0800
@@ -86,7 +86,6 @@
  	if (get_user(tv.tv_sec, tptr))
  		return -EFAULT;

-	tv.tv_nsec = 0;

  	err = security_settime(&tv, NULL);
  	if (err)
@@ -269,7 +269,6 @@
  	if (gran <= jiffies_to_usecs(1) * 1000) {
  		/* nothing */
  	} else if (gran == 1000000000) {
-		t.tv_nsec = 0;
  	} else {
  		t.tv_nsec -= t.tv_nsec % gran;
  	}


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

end of thread, other threads:[~2007-02-13  9:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-13  8:38 [PATCH] nanosecond filesystem support??? Jeff Chua
2007-02-13  8:42 ` Arjan van de Ven
2007-02-13  8:52 ` Andi Kleen
2007-02-13  9:09   ` Jeff Chua

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.