Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2103663ybd; Thu, 27 Jun 2019 06:51:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwO2mcdLha3SuKckPVthTJfDKbpI3EAYZsdOO0vsP8HFowN+KkxprlJMdm5p1TMP0WyIjBK X-Received: by 2002:a63:2a8d:: with SMTP id q135mr3934632pgq.46.1561643511144; Thu, 27 Jun 2019 06:51:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561643511; cv=none; d=google.com; s=arc-20160816; b=lWZotPBTNLtW15ABiE+HK2dUPUGhEHbovt9qoUyNCrnP4E+AAC36unCQw2JesTku8Q RgQ1YEZyXESEchNA0bNPa0eh7hHbxv7NV2WZDab29NxNbz4YQATMM7y8hp7j6BGEobe3 GSLqWQJnpkOw4v3+pMFMXsb1bvrfcCzRrnUkR3mCUHHHpE4/hKIP5LeVNE5UTu6bA22r woqPmkm2+mJ/RdtBU07QlojmrxDGSlF2DpadRiv4tbI5zBUxIKPeiD5RQk/tb3HUS5qU YqRZA0A0rKomMiHtUR+PRmk8a2vXpH5URkjdFYxxG+lGJ8GF8GqbTAxANAQSfe1ICe8b mXvA== 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 :message-id:date:subject:cc:to:from; bh=Cixt79LfR/COoSNWjOWNmWaWWhtk8n3IIEQjACARs80=; b=Rh6kBjfSJZrQuCXepuH+H360pjxUg8xVyB8vibIlQYJd9aWKnBd79Nw20Wzoi5L9RW CaI4IkFOWdOrqd6GW5+kHi+Qzhuckwcu7SrVbuoJHFx9ceIzCinGl/dJHL2573scVJKF pKgxR3wWFTheNZl9XFjay6CIkB+x+vB2rThor3MOksUgBwY43NTTbLAPw5IUFhm0CkHL e0eOMN/7oGYK9OsHSTy7ewAlALE9GFpq7jimsqGb7efXqD/D4lBWCrh3b7+ikCmat2ty cOuxdLC2qUmxPt5IP79OW6cxFiTZqTKzeuPDcoyOdXlA0+lpIFvnN1LYOf/65pEPNpWL 5+iw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m129si2628349pfm.118.2019.06.27.06.51.33; Thu, 27 Jun 2019 06:51:51 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726759AbfF0Nv2 (ORCPT + 99 others); Thu, 27 Jun 2019 09:51:28 -0400 Received: from mx2.suse.de ([195.135.220.15]:52968 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726462AbfF0Nv2 (ORCPT ); Thu, 27 Jun 2019 09:51:28 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 23C5BAB9D; Thu, 27 Jun 2019 13:51:27 +0000 (UTC) From: Luis Henriques To: Jeff Layton , "Yan, Zheng" , Sage Weil , Ilya Dryomov Cc: ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Luis Henriques Subject: [RFC PATCH] ceph: initialize superblock s_time_gran to 1 Date: Thu, 27 Jun 2019 14:51:22 +0100 Message-Id: <20190627135122.12817-1-lhenriques@suse.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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)