summaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorDeepa Dinamani <deepa.kernel@gmail.com>2018-01-21 21:04:23 -0500
committerDeepa Dinamani <deepa.kernel@gmail.com>2019-08-30 10:27:17 -0400
commit188d20bcd1ebd8277d9b8a79525bd66b66d40a2a (patch)
treeb064ec8f02616f2c465a50d6acab00b7f4ee2eb7 /include/linux/fs.h
parenta55aa89aab90fae7c815b0551b07be37db359d76 (diff)
vfs: Add file timestamp range support
Add fields to the superblock to track the min and max timestamps supported by filesystems. Initially, when a superblock is allocated, initialize it to the max and min values the fields can hold. Individual filesystems override these to match their actual limits. Pseudo filesystems are assumed to always support the min and max allowable values for the fields. Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com> Acked-by: Jeff Layton <jlayton@kernel.org>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 997a530ff4e9..4b349851b00c 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1448,6 +1448,9 @@ struct super_block {
1448 1448
1449 /* Granularity of c/m/atime in ns (cannot be worse than a second) */ 1449 /* Granularity of c/m/atime in ns (cannot be worse than a second) */
1450 u32 s_time_gran; 1450 u32 s_time_gran;
1451 /* Time limits for c/m/atime in seconds */
1452 time64_t s_time_min;
1453 time64_t s_time_max;
1451#ifdef CONFIG_FSNOTIFY 1454#ifdef CONFIG_FSNOTIFY
1452 __u32 s_fsnotify_mask; 1455 __u32 s_fsnotify_mask;
1453 struct fsnotify_mark_connector __rcu *s_fsnotify_marks; 1456 struct fsnotify_mark_connector __rcu *s_fsnotify_marks;