From: Deepa Dinamani Date: Sun, 23 Jun 2019 22:10:51 +0000 (-0700) Subject: fs: omfs: Initialize filesystem timestamp ranges X-Git-Tag: v5.4-rc1~119^2~1^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8833293d0accf2b6a9ddaaafd198f7e1bf1d3dc6;p=thirdparty%2Flinux.git fs: omfs: 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. Signed-off-by: Deepa Dinamani Acked-by: Bob Copeland Acked-by: Jeff Layton Cc: me@bobcopeland.com Cc: linux-karma-devel@lists.sourceforge.net --- diff --git a/fs/omfs/inode.c b/fs/omfs/inode.c index 08226a835ec33..b76ec6b88ded5 100644 --- a/fs/omfs/inode.c +++ b/fs/omfs/inode.c @@ -478,6 +478,10 @@ static int omfs_fill_super(struct super_block *sb, void *data, int silent) sb->s_maxbytes = 0xffffffff; + sb->s_time_gran = NSEC_PER_MSEC; + sb->s_time_min = 0; + sb->s_time_max = U64_MAX / MSEC_PER_SEC; + sb_set_blocksize(sb, 0x200); bh = sb_bread(sb, 0);