summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorDeepa Dinamani <deepa.kernel@gmail.com>2019-03-21 22:34:38 +0100
committerDeepa Dinamani <deepa.kernel@gmail.com>2019-08-30 16:27:19 +0200
commit028ca4db0a6e0be470ae866d1afd63e8740aa3e7 (patch)
tree25340c6c3f7886d52896dc1b7918a3bc3ddddb1d /fs
parentfs: sysv: Initialize filesystem timestamp ranges (diff)
downloadlinux-028ca4db0a6e0be470ae866d1afd63e8740aa3e7.tar.xz
linux-028ca4db0a6e0be470ae866d1afd63e8740aa3e7.zip
fs: ceph: Initialize filesystem timestamp ranges
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
Diffstat (limited to 'fs')
-rw-r--r--fs/ceph/super.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ceph/super.c b/fs/ceph/super.c
index ab4868c7308e..377fafc76f20 100644
--- a/fs/ceph/super.c
+++ b/fs/ceph/super.c
@@ -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)