diff options
Diffstat (limited to 'include/linux/fs.h')
-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 40887afaaca7..51978ed43e97 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1692,6 +1692,7 @@ struct inode_operations { | |||
1692 | int (*removexattr) (struct dentry *, const char *); | 1692 | int (*removexattr) (struct dentry *, const char *); |
1693 | int (*fiemap)(struct inode *, struct fiemap_extent_info *, u64 start, | 1693 | int (*fiemap)(struct inode *, struct fiemap_extent_info *, u64 start, |
1694 | u64 len); | 1694 | u64 len); |
1695 | int (*update_time)(struct inode *, struct timespec *, int); | ||
1695 | } ____cacheline_aligned; | 1696 | } ____cacheline_aligned; |
1696 | 1697 | ||
1697 | struct seq_file; | 1698 | struct seq_file; |
@@ -1850,6 +1851,13 @@ static inline void inode_inc_iversion(struct inode *inode) | |||
1850 | spin_unlock(&inode->i_lock); | 1851 | spin_unlock(&inode->i_lock); |
1851 | } | 1852 | } |
1852 | 1853 | ||
1854 | enum file_time_flags { | ||
1855 | S_ATIME = 1, | ||
1856 | S_MTIME = 2, | ||
1857 | S_CTIME = 4, | ||
1858 | S_VERSION = 8, | ||
1859 | }; | ||
1860 | |||
1853 | extern void touch_atime(struct path *); | 1861 | extern void touch_atime(struct path *); |
1854 | static inline void file_accessed(struct file *file) | 1862 | static inline void file_accessed(struct file *file) |
1855 | { | 1863 | { |
@@ -2583,7 +2591,7 @@ extern int inode_change_ok(const struct inode *, struct iattr *); | |||
2583 | extern int inode_newsize_ok(const struct inode *, loff_t offset); | 2591 | extern int inode_newsize_ok(const struct inode *, loff_t offset); |
2584 | extern void setattr_copy(struct inode *inode, const struct iattr *attr); | 2592 | extern void setattr_copy(struct inode *inode, const struct iattr *attr); |
2585 | 2593 | ||
2586 | extern void file_update_time(struct file *file); | 2594 | extern int file_update_time(struct file *file); |
2587 | 2595 | ||
2588 | extern int generic_show_options(struct seq_file *m, struct dentry *root); | 2596 | extern int generic_show_options(struct seq_file *m, struct dentry *root); |
2589 | extern void save_mount_options(struct super_block *sb, char *options); | 2597 | extern void save_mount_options(struct super_block *sb, char *options); |