From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: [PATCH] tmpfs: time granularity fix for [acm]time going backwards Date: Tue, 13 Jun 2006 05:38:33 +0200 Message-ID: <200606130538.33160.ak@suse.de> References: <20060611115421.GE26475@curie-int.vc.shawcable.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Linus Torvalds , "Robin H. Johnson" , Al Viro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Return-path: Received: from ns.suse.de ([195.135.220.2]:14568 "EHLO mx1.suse.de") by vger.kernel.org with ESMTP id S932843AbWFMDvr (ORCPT ); Mon, 12 Jun 2006 23:51:47 -0400 To: Hugh Dickins In-Reply-To: Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org > This patch should probably be included for 2.6.17, despite how long the > bug has been around. It's a one-liner, with no side-effects. Agreed - it's obviously correct and a nasty little problem. Should be in 2.6.17. -Andi > > mm/shmem.c | 1 + > 1 file changed, 1 insertion(+) > > --- 2.6.17-rc6-git/mm/shmem.c > +++ linux/mm/shmem.c > @@ -2102,6 +2102,7 @@ static int shmem_fill_super(struct super > sb->s_blocksize_bits = PAGE_CACHE_SHIFT; > sb->s_magic = TMPFS_MAGIC; > sb->s_op = &shmem_ops; > + sb->s_time_gran = 1; > > inode = shmem_get_inode(sb, S_IFDIR | mode, 0); > if (!inode) >