VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Deepa Dinamani <deepa.kernel@gmail.com> 2019-06-23 15:10:51 -0700 committer: Deepa Dinamani <deepa.kernel@gmail.com> 2019-08-30 08:11:25 -0700 commit: 8833293d0accf2b6a9ddaaafd198f7e1bf1d3dc6 parent: cdd62b5b07e8d4e0a397254688b8178f3a7e03d1
Commit Summary:
fs: omfs: Initialize filesystem timestamp ranges
Diffstat:
1 file changed, 4 insertions, 0 deletions
diff --git a/fs/omfs/inode.c b/fs/omfs/inode.c
index 08226a835ec3..b76ec6b88ded 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);