From: Jeff Chua <jeff.chua.linux@gmail.com>
To: Andi Kleen <ak@suse.de>
Cc: lkml <linux-kernel@vger.kernel.org>,
Arjan van de Ven <arjan@infradead.org>,
Miquel van Smoorenburg <miquels@cistron.nl>,
Linus Torvalds <torvalds@osdl.org>
Subject: [PATCH] nanosecond filesystem support???
Date: Tue, 13 Feb 2007 16:38:22 +0800 (SGT) [thread overview]
Message-ID: <Pine.LNX.4.64.0702131627210.5124@boston.corp.fedex.com> (raw)
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;
}
next reply other threads:[~2007-02-13 8:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-13 8:38 Jeff Chua [this message]
2007-02-13 8:42 ` Arjan van de Ven
2007-02-13 8:52 ` Andi Kleen
2007-02-13 9:09 ` Jeff Chua
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=Pine.LNX.4.64.0702131627210.5124@boston.corp.fedex.com \
--to=jeff.chua.linux@gmail.com \
--cc=ak@suse.de \
--cc=arjan@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=miquels@cistron.nl \
--cc=torvalds@osdl.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
all inboxes | Powered by JetHome®