From: Luis Henriques Date: Thu, 27 Jun 2019 13:51:22 +0000 (+0100) Subject: ceph: initialize superblock s_time_gran to 1 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0f7cf80ae96c2a585a00b2cd8b6d24699db47f35;p=openwrt%2Fstaging%2Fblogic.git ceph: initialize superblock s_time_gran to 1 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 Reviewed-by: Jeff Layton Reviewed-by: Sage Weil Signed-off-by: Ilya Dryomov --- diff --git a/fs/ceph/super.c b/fs/ceph/super.c index 542b31994e3b..c21201a951ce 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)