From patchwork Tue Aug 31 08:42:50 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Satoru Takeuchi X-Patchwork-Id: 144801 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o7V8iEsT010225 for ; Tue, 31 Aug 2010 08:44:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754220Ab0HaInl (ORCPT ); Tue, 31 Aug 2010 04:43:41 -0400 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]:52879 "EHLO fgwmail6.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753986Ab0HaInj (ORCPT ); Tue, 31 Aug 2010 04:43:39 -0400 Received: from m1.gw.fujitsu.co.jp ([10.0.50.71]) by fgwmail6.fujitsu.co.jp (Fujitsu Gateway) with ESMTP id o7V8hbLH023186 (envelope-from takeuchi_satoru@jp.fujitsu.com); Tue, 31 Aug 2010 17:43:37 +0900 Received: from smail (m1 [127.0.0.1]) by outgoing.m1.gw.fujitsu.co.jp (Postfix) with ESMTP id 6BAB445DE4D; Tue, 31 Aug 2010 17:43:37 +0900 (JST) Received: from s1.gw.fujitsu.co.jp (s1.gw.fujitsu.co.jp [10.0.50.91]) by m1.gw.fujitsu.co.jp (Postfix) with ESMTP id 4876245DE50; Tue, 31 Aug 2010 17:43:37 +0900 (JST) Received: from s1.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s1.gw.fujitsu.co.jp (Postfix) with ESMTP id 0F1561DB804A; Tue, 31 Aug 2010 17:43:37 +0900 (JST) Received: from m105.s.css.fujitsu.com (m105.s.css.fujitsu.com [10.249.87.105]) by s1.gw.fujitsu.co.jp (Postfix) with ESMTP id C0CCA1DB8048; Tue, 31 Aug 2010 17:43:36 +0900 (JST) Received: from m105.css.fujitsu.com (m105 [127.0.0.1]) by m105.s.css.fujitsu.com (Postfix) with ESMTP id 99BF15E8003; Tue, 31 Aug 2010 17:43:35 +0900 (JST) Received: from [127.0.0.1] (unknown [10.124.101.166]) by m105.s.css.fujitsu.com (Postfix) with ESMTP id 7537D608007; Tue, 31 Aug 2010 17:43:34 +0900 (JST) X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.4.0 Received: from WIN-9UKFLE4PQ1W[10.124.101.166] by WIN-9UKFLE4PQ1W (FujitsuOutboundMailChecker v1.4.0/9992[10.124.101.166]); Tue, 31 Aug 2010 17:43:00 +0900 (JST) Message-ID: <4C7CC08A.9010302@jp.fujitsu.com> Date: Tue, 31 Aug 2010 17:42:50 +0900 From: Satoru Takeuchi User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; ja; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: Andreas Dilger , Chris Mason , Jiri Olsa , John Stultz , "Ted Ts'o" , Thomas Gleixner , Oleg Nesterov , linux-btrfs , linux-ext4 , lkml Subject: [RFC][PATCH] make file's timestamp more accurate Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 31 Aug 2010 08:44:14 +0000 (UTC) Index: linux-2.6.36-rc3/kernel/time.c =================================================================== --- linux-2.6.36-rc3.orig/kernel/time.c 2010-08-31 16:07:43.000000000 +0900 +++ linux-2.6.36-rc3/kernel/time.c 2010-08-31 16:08:11.000000000 +0900 @@ -227,7 +227,8 @@ SYSCALL_DEFINE1(adjtimex, struct timex _ */ struct timespec current_fs_time(struct super_block *sb) { - struct timespec now = current_kernel_time(); + struct timespec now; + getnstimeofday(&now); return timespec_trunc(now, sb->s_time_gran); } EXPORT_SYMBOL(current_fs_time);