Messages in this thread Patch in this message |  | | Date | Tue, 13 Feb 2007 16:38:22 +0800 (SGT) | From | Jeff Chua <> | Subject | [PATCH] nanosecond filesystem support??? |
| |
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; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |