diff options
author | Christoph Hellwig <hch@lst.de> | 2006-01-09 23:52:01 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-10 11:01:30 -0500 |
commit | 870f481793b585323fbda3e87c54efc116f46351 (patch) | |
tree | 08dce269f14c18ae1b1682d3cb0f149b938d40bb /include/linux/fs.h | |
parent | 3542c6e18f6470bad2bde1e94331e4f488a8d3f1 (diff) |
[PATCH] replace inode_update_time with file_update_time
To allow various options to work per-mount instead of per-sb we need a
struct vfsmount when updating ctime and mtime. This preparation patch
replaces the inode_update_time routine with a file_update_atime routine so
we can easily get at the vfsmount. (and the file makes more sense in this
context anyway). Also get rid of the unused second argument - we always
want to update the ctime when calling this routine.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: Al Viro <viro@ftp.linux.org.uk>
Cc: Anton Altaparmakov <aia21@cantab.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 92ae3e2067b0..1feee2e7e47b 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1716,7 +1716,7 @@ extern ssize_t simple_read_from_buffer(void __user *, size_t, loff_t *, const vo | |||
1716 | extern int inode_change_ok(struct inode *, struct iattr *); | 1716 | extern int inode_change_ok(struct inode *, struct iattr *); |
1717 | extern int __must_check inode_setattr(struct inode *, struct iattr *); | 1717 | extern int __must_check inode_setattr(struct inode *, struct iattr *); |
1718 | 1718 | ||
1719 | extern void inode_update_time(struct inode *inode, int ctime_too); | 1719 | extern void file_update_time(struct file *file); |
1720 | 1720 | ||
1721 | static inline ino_t parent_ino(struct dentry *dentry) | 1721 | static inline ino_t parent_ino(struct dentry *dentry) |
1722 | { | 1722 | { |