]> asedeno.scripts.mit.edu Git - linux.git/commit
ceph: initialize superblock s_time_gran to 1
authorLuis Henriques <lhenriques@suse.com>
Thu, 27 Jun 2019 13:51:22 +0000 (14:51 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 8 Jul 2019 12:01:45 +0000 (14:01 +0200)
commit0f7cf80ae96c2a585a00b2cd8b6d24699db47f35
treebf02aa1f1779445daa3e0342ce25644ff13cac7b
parent1edd1fecae5e7ab23c64c02aa52c4690d6a0b32f
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>
fs/ceph/super.c