On Friday 08 April 2016, Deepa Dinamani wrote:
This is a preparation patch to add range checking for inode timestamps.
Extend struct super_block to include information about the max and min inode times each filesystem can hold. These are dependent on the on-disk format of filesystems.
These range checks will be used to clamp timestamps to filesystem allowed ranges.
Individual filesystems do not have the same on disk format as the in memory inodes. Range checking and clamping times assigned to inodes will help keep in memory and on-disk timestamps to be in sync.
Another series will initialize these fields to appropriate values for every filesystem.
The fields are not used by vfs yet. The exact policy and behavior will be decided in a separate patch.
The original idea for the feature comes from the discussion: https://lkml.org/lkml/2014/5/30/669
Signed-off-by: Deepa Dinamani deepa.kernel@gmail.com
Reviewed-by: Arnd Bergmann arnd@arndb.de