aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/fs.h10
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
1689struct seq_file; 1690struct 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
1847enum file_time_flags {
1848 S_ATIME = 1,
1849 S_MTIME = 2,
1850 S_CTIME = 4,
1851 S_VERSION = 8,
1852};
1853
1846extern void touch_atime(struct path *); 1854extern void touch_atime(struct path *);
1847static inline void file_accessed(struct file *file) 1855static inline void file_accessed(struct file *file)
1848{ 1856{
@@ -2579,7 +2587,7 @@ extern int inode_change_ok(const struct inode *, struct iattr *);
2579extern int inode_newsize_ok(const struct inode *, loff_t offset); 2587extern int inode_newsize_ok(const struct inode *, loff_t offset);
2580extern void setattr_copy(struct inode *inode, const struct iattr *attr); 2588extern void setattr_copy(struct inode *inode, const struct iattr *attr);
2581 2589
2582extern void file_update_time(struct file *file); 2590extern int file_update_time(struct file *file);
2583 2591
2584extern int generic_show_options(struct seq_file *m, struct dentry *root); 2592extern int generic_show_options(struct seq_file *m, struct dentry *root);
2585extern void save_mount_options(struct super_block *sb, char *options); 2593extern void save_mount_options(struct super_block *sb, char *options);