Skip to content

Commit 8833293

Browse files
committed
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 <deepa.kernel@gmail.com> Acked-by: Bob Copeland <me@bobcopeland.com> Acked-by: Jeff Layton <jlayton@kernel.org> Cc: me@bobcopeland.com Cc: linux-karma-devel@lists.sourceforge.net
1 parent cdd62b5 commit 8833293

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎fs/omfs/inode.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,10 @@ static int omfs_fill_super(struct super_block *sb, void *data, int silent)
478478

479479
sb->s_maxbytes = 0xffffffff;
480480

481+
sb->s_time_gran = NSEC_PER_MSEC;
482+
sb->s_time_min = 0;
483+
sb->s_time_max = U64_MAX / MSEC_PER_SEC;
484+
481485
sb_set_blocksize(sb, 0x200);
482486

483487
bh = sb_bread(sb, 0);

0 commit comments

Comments
 (0)