diff options
author | Luis Henriques <lhenriques@suse.com> | 2019-06-27 09:51:22 -0400 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2019-07-08 08:01:45 -0400 |
commit | 0f7cf80ae96c2a585a00b2cd8b6d24699db47f35 (patch) | |
tree | bf02aa1f1779445daa3e0342ce25644ff13cac7b | |
parent | 1edd1fecae5e7ab23c64c02aa52c4690d6a0b32f (diff) |
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 <lhenriques@suse.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Sage Weil <sage@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
-rw-r--r-- | fs/ceph/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
980 | s->s_d_op = &ceph_dentry_ops; | 980 | s->s_d_op = &ceph_dentry_ops; |
981 | s->s_export_op = &ceph_export_ops; | 981 | s->s_export_op = &ceph_export_ops; |
982 | 982 | ||
983 | s->s_time_gran = 1000; /* 1000 ns == 1 us */ | 983 | s->s_time_gran = 1; |
984 | 984 | ||
985 | ret = set_anon_super(s, NULL); /* what is that second arg for? */ | 985 | ret = set_anon_super(s, NULL); /* what is that second arg for? */ |
986 | if (ret != 0) | 986 | if (ret != 0) |