Skip to content

Commit

Permalink
fs: omfs: Initialize filesystem timestamp ranges
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Bob Copeland <[email protected]>
Acked-by: Jeff Layton <[email protected]>
Cc: [email protected]
Cc: [email protected]
  • Loading branch information
deepa-hub committed Aug 30, 2019
1 parent cdd62b5 commit 8833293
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fs/omfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8833293

Please sign in to comment.