Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2157416ybd; Thu, 27 Jun 2019 07:42:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqzY1yzderM9NGr90LUjixenQP+BAkxbhWGY6wwXF+TUwiyt6uVPM/9hQh/Vy+yldg47psJd X-Received: by 2002:a17:90a:2ec1:: with SMTP id h1mr2926144pjs.119.1561646544449; Thu, 27 Jun 2019 07:42:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561646544; cv=none; d=google.com; s=arc-20160816; b=G65qJbhX3or+hNyOSl0wpbn0HNVtGcRlt4yOyjEF+ENhBFaE3l5IXBHVH6vBGdlF3w bmldimceqdBMpcRBwkFOGiwBlQtmVHvwWoNH57QQf6Tezt4V58RHWrzAzCZbJDqZbypO eEONV4qkUSIJAXDUtYSrxV+5jqjjJouHtM3kvtibWmJTajjEzGuhd1sTuocxB/dNvwci hVMXwu37O0lfUKrsQFjmILu9imgpBOc0Kzel83X184bwQPdvugvuEHYzGitt9m9uDpba N0f6XE9uJhROcMX/dSPlNTSsIAYzPVhahO+s22IjJrsfoFBwC/0LeS5v2JOPwy8AODXd Dl9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=y9OyX/CTCiBECfH0yYBAxqfuCnP4Wni8vTd9jS9Fq8M=; b=MYGo5RYnKiKTP9RSXf7df2v1bglleUHLE2zUp3wG2CRkFq5t++h3TZtCJKZPPjbm7s PqlDtE82nJ+RqvdDvCIGK+SuCRYog04yDSXqp0aW6K2Zq0tp2RzKVWDC8lCccqMIykGy oHCAju7jC88krRVxS60QvEVYf2rcEqnqAIqxCoYwmaEVmbVz4WCS+NH3C5tDjV37Mjo7 qfh1CxuEKMfB+JfGoGpNhWOwYB1nlE4dwH89y+56FOzSbSz6FH6davogd/EwugJt0TPZ NRquD9PC9/yvwIWioBze8O2zrrqZ6HcEfo019T8qixQw8VYGTx8BGj667VJtZykoyYGa fvnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MWhR04I3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v1si2179172pgs.355.2019.06.27.07.42.07; Thu, 27 Jun 2019 07:42:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MWhR04I3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726545AbfF0OlK (ORCPT + 99 others); Thu, 27 Jun 2019 10:41:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:43382 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726370AbfF0OlK (ORCPT ); Thu, 27 Jun 2019 10:41:10 -0400 Received: from tleilax.poochiereds.net (cpe-71-70-156-158.nc.res.rr.com [71.70.156.158]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7AA3920828; Thu, 27 Jun 2019 14:41:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561646469; bh=5g54SfqiMdUp+4gMMz3X6m++ycp9PeKR9MwOfbhwIzE=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=MWhR04I3jgGAEEkajU1SvPQcpslxrGkANJNUVXuCMqeZbtR5fRwTqPmPRG+5vXXUZ hQopFfpzShF4Im/MndRRfeq3Uc/OXGIUCucCzQhvyQw5wYfA6tQyGL1Prx8qfV4Z4j 2PGt2/85kPZhZFccxYSsJEHEshyJBrd9Kn5/zb0I= Message-ID: <0459c2a46200194c14b7474f55071b12fbc3d594.camel@kernel.org> Subject: Re: [RFC PATCH] ceph: initialize superblock s_time_gran to 1 From: Jeff Layton To: Luis Henriques , "Yan, Zheng" , Sage Weil , Ilya Dryomov Cc: ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 27 Jun 2019 10:41:07 -0400 In-Reply-To: <20190627135122.12817-1-lhenriques@suse.com> References: <20190627135122.12817-1-lhenriques@suse.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.3 (3.32.3-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2019-06-27 at 14:51 +0100, Luis Henriques wrote: > Having granularity set to 1us results in having inode timestamps with a > accurancy different from the fuse client (i.e. atime, ctime and mtime will > always end with '000'). This patch normalizes this behaviour and sets the > granularity to 1. > > Signed-off-by: Luis Henriques > --- > fs/ceph/super.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > Hi! > > As far as I could see there are no other side-effects of changing > s_time_gran but I'm really not sure why it was initially set to 1000 in > the first place so I may be missing something. > > diff --git a/fs/ceph/super.c b/fs/ceph/super.c > index d57fa60dcd43..35dd75bc9cd0 100644 > --- a/fs/ceph/super.c > +++ b/fs/ceph/super.c > @@ -980,7 +980,7 @@ static int ceph_set_super(struct super_block *s, void *data) > s->s_d_op = &ceph_dentry_ops; > s->s_export_op = &ceph_export_ops; > > - s->s_time_gran = 1000; /* 1000 ns == 1 us */ > + s->s_time_gran = 1; > > ret = set_anon_super(s, NULL); /* what is that second arg for? */ > if (ret != 0) Looks like it was set that way since the client code was originally merged. Was this an earlier limitation of ceph that is no longer applicable? In any case, I see no need at all to keep this at 1000, so: Reviewed-by: Jeff Layton