]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
fs: ceph: Initialize filesystem timestamp ranges
authorDeepa Dinamani <deepa.kernel@gmail.com>
Thu, 21 Mar 2019 21:34:38 +0000 (14:34 -0700)
committerDeepa Dinamani <deepa.kernel@gmail.com>
Fri, 30 Aug 2019 14:27:19 +0000 (07:27 -0700)
Fill in the appropriate limits to avoid inconsistencies
in the vfs cached inode times when timestamps are
outside the permitted range.

According to the disscussion in
https://patchwork.kernel.org/patch/8308691/ we agreed to use
unsigned 32 bit timestamps on ceph.
Update the limits accordingly.

Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Acked-by: Jeff Layton <jlayton@kernel.org>
Cc: zyan@redhat.com
Cc: sage@redhat.com
Cc: idryomov@gmail.com
Cc: ceph-devel@vger.kernel.org
fs/ceph/super.c

index ab4868c7308ecc9011fd76bf06307244658f2580..377fafc76f200526f9bac4ca7a7468fe004ef0c4 100644 (file)
@@ -979,6 +979,8 @@ static int ceph_set_super(struct super_block *s, void *data)
        s->s_export_op = &ceph_export_ops;
 
        s->s_time_gran = 1;
+       s->s_time_min = 0;
+       s->s_time_max = U32_MAX;
 
        ret = set_anon_super(s, NULL);  /* what is that second arg for? */
        if (ret != 0)