diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-03-15 08:21:57 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-03-20 21:29:41 -0400 |
commit | 68ac1234fb949b66941d94dce4157742799fc581 (patch) | |
tree | 04059b7dbaed92d672b8ceef1fcf25c6185e06f8 /include/linux/fs.h | |
parent | 40ffe67d2e89c7a475421d007becc11a2f88ea3d (diff) |
switch touch_atime to struct path
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index b89dc4d60d99..9bbe1a9ac432 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1812,11 +1812,11 @@ static inline void inode_inc_iversion(struct inode *inode) | |||
1812 | spin_unlock(&inode->i_lock); | 1812 | spin_unlock(&inode->i_lock); |
1813 | } | 1813 | } |
1814 | 1814 | ||
1815 | extern void touch_atime(struct vfsmount *mnt, struct dentry *dentry); | 1815 | extern void touch_atime(struct path *); |
1816 | static inline void file_accessed(struct file *file) | 1816 | static inline void file_accessed(struct file *file) |
1817 | { | 1817 | { |
1818 | if (!(file->f_flags & O_NOATIME)) | 1818 | if (!(file->f_flags & O_NOATIME)) |
1819 | touch_atime(file->f_path.mnt, file->f_path.dentry); | 1819 | touch_atime(&file->f_path); |
1820 | } | 1820 | } |
1821 | 1821 | ||
1822 | int sync_inode(struct inode *inode, struct writeback_control *wbc); | 1822 | int sync_inode(struct inode *inode, struct writeback_control *wbc); |