mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Acked-by: Bob Copeland <[email protected]> Acked-by: Jeff Layton <[email protected]> Cc: [email protected] Cc: [email protected]
This commit is contained in:
parent
cdd62b5b07
commit
8833293d0a
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue