Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751750Ab0HMUyB (ORCPT ); Fri, 13 Aug 2010 16:54:01 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:51189 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751393Ab0HMUx7 (ORCPT ); Fri, 13 Aug 2010 16:53:59 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=rUlUYJLMotO/U0HR02SJN6n0Lde6CFyLBSh1/ZNPwzn5nBCtVS8peY1D60vf+PvbJU rn8ddCINdui76ZLZDnLtL4iuK/lzXEjHcFRm7QqRyXFMomS8xMXql6z4C9ESv9x/fSK1 ASO/bzJtXFM8ZEUpqqzmizDpYplR8Jrz/cDok= MIME-Version: 1.0 In-Reply-To: <1281726579.2810.10.camel@localhost.localdomain> References: <1281726579.2810.10.camel@localhost.localdomain> Date: Fri, 13 Aug 2010 13:53:57 -0700 Message-ID: Subject: Re: Proposal: Use hi-res clock for file timestamps From: "Patrick J. LoPresti" To: john stultz Cc: linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-kernel Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1076 Lines: 38 On Fri, Aug 13, 2010 at 12:09 PM, john stultz wrote: > > So other then "show some numbers", my only thought that might make the > patch more attractive is that rather than a global change, or a static > CONFIG_ option, would it maybe make more sense as a mount option? I really like this idea. Consider the following "revision 2" of my proposal: 1) Add a function pointer "current_fs_time" to struct super_block. 2) Replace all calls of the form: current_fs_time(sb); with sb->current_fs_time(sb); 3) Arrange for the default value to point to the current implementation. These first three could be one patch. They change no functionality; they just enable the next step. Finally: 4) Add a mount option to cause sb->current_fs_time(sb) to use the hi-res implementation. Comments? - Pat -- 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/