diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index cdc1a9630948..57fc70574d20 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1684,6 +1684,7 @@ struct inode_operations { | |||
1684 | void (*truncate_range)(struct inode *, loff_t, loff_t); | 1684 | void (*truncate_range)(struct inode *, loff_t, loff_t); |
1685 | int (*fiemap)(struct inode *, struct fiemap_extent_info *, u64 start, | 1685 | int (*fiemap)(struct inode *, struct fiemap_extent_info *, u64 start, |
1686 | u64 len); | 1686 | u64 len); |
1687 | int (*update_time)(struct inode *, struct timespec *, int); | ||
1687 | } ____cacheline_aligned; | 1688 | } ____cacheline_aligned; |
1688 | 1689 | ||
1689 | struct seq_file; | 1690 | struct seq_file; |
@@ -1843,6 +1844,13 @@ static inline void inode_inc_iversion(struct inode *inode) | |||
1843 | spin_unlock(&inode->i_lock); | 1844 | spin_unlock(&inode->i_lock); |
1844 | } | 1845 | } |
1845 | 1846 | ||
1847 | enum file_time_flags { | ||
1848 | S_ATIME = 1, | ||
1849 | S_MTIME = 2, | ||
1850 | S_CTIME = 4, | ||
1851 | S_VERSION = 8, | ||
1852 | }; | ||
1853 | |||
1846 | extern void touch_atime(struct path *); | 1854 | extern void touch_atime(struct path *); |
1847 | static inline void file_accessed(struct file *file) | 1855 | static inline void file_accessed(struct file *file) |
1848 | { | 1856 | { |
@@ -2579,7 +2587,7 @@ extern int inode_change_ok(const struct inode *, struct iattr *); | |||
2579 | extern int inode_newsize_ok(const struct inode *, loff_t offset); | 2587 | extern int inode_newsize_ok(const struct inode *, loff_t offset); |
2580 | extern void setattr_copy(struct inode *inode, const struct iattr *attr); | 2588 | extern void setattr_copy(struct inode *inode, const struct iattr *attr); |
2581 | 2589 | ||
2582 | extern void file_update_time(struct file *file); | 2590 | extern int file_update_time(struct file *file); |
2583 | 2591 | ||
2584 | extern int generic_show_options(struct seq_file *m, struct dentry *root); | 2592 | extern int generic_show_options(struct seq_file *m, struct dentry *root); |
2585 | extern void save_mount_options(struct super_block *sb, char *options); | 2593 | extern void save_mount_options(struct super_block *sb, char *options); |