[PATCH v8 16/20] fs: orangefs: Initialize filesystem timestamp ranges

From: Deepa Dinamani
Date: Sun Aug 18 2019 - 13:00:27 EST


Fill in the appropriate limits to avoid inconsistencies
in the vfs cached inode times when timestamps are
outside the permitted range.

Assume the limits as unsigned according to the below
commit 98e8eef557a9 ("changed PVFS_time from int64_t to uint64_t")
in https://github.com/waltligon/orangefs

Author: Neill Miller <neillm@xxxxxxxxxxx>
Date: Thu Sep 2 15:00:38 2004 +0000

Signed-off-by: Deepa Dinamani <deepa.kernel@xxxxxxxxx>
Cc: hubcap@xxxxxxxxxxxx
Cc: martin@xxxxxxxxxxxx
Cc: devel@xxxxxxxxxxxxxxxxxx
---
fs/orangefs/super.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/fs/orangefs/super.c b/fs/orangefs/super.c
index 2811586fafc2..1ec08fe459cf 100644
--- a/fs/orangefs/super.c
+++ b/fs/orangefs/super.c
@@ -425,6 +425,8 @@ static int orangefs_fill_sb(struct super_block *sb,
sb->s_blocksize = PAGE_SIZE;
sb->s_blocksize_bits = PAGE_SHIFT;
sb->s_maxbytes = MAX_LFS_FILESIZE;
+ sb->s_time_min = 0;
+ sb->s_time_max = S64_MAX;

ret = super_setup_bdi(sb);
if (ret)
--
2.17.1