[PATCH] remove update_atime
All callers use touch_atime now which takes a vfsmount and allows us to implement per-mount noatime. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
9cf6f4b3a3
commit
869243a0f6
2 changed files with 7 additions and 12 deletions
|
@ -235,9 +235,6 @@ struct kstatfs;
|
|||
struct vm_area_struct;
|
||||
struct vfsmount;
|
||||
|
||||
/* Used to be a macro which just called the function, now just a function */
|
||||
extern void update_atime (struct inode *);
|
||||
|
||||
extern void __init inode_init(unsigned long);
|
||||
extern void __init inode_init_early(void);
|
||||
extern void __init mnt_init(unsigned long);
|
||||
|
@ -1118,12 +1115,7 @@ static inline void mark_inode_dirty_sync(struct inode *inode)
|
|||
__mark_inode_dirty(inode, I_DIRTY_SYNC);
|
||||
}
|
||||
|
||||
static inline void touch_atime(struct vfsmount *mnt, struct dentry *dentry)
|
||||
{
|
||||
/* per-mountpoint checks will go here */
|
||||
update_atime(dentry->d_inode);
|
||||
}
|
||||
|
||||
extern void touch_atime(struct vfsmount *mnt, struct dentry *dentry);
|
||||
static inline void file_accessed(struct file *file)
|
||||
{
|
||||
if (!(file->f_flags & O_NOATIME))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue