aboutsummaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>2004-03-18 05:38:53 -0800
committerDavid S. Miller <davem@nuts.davemloft.net>2004-03-18 05:38:53 -0800
commit5f9861a66ce697389ea89236902ef6ef5f54225b (patch)
tree06e9241e8dfe5f77aa50ae7cb0685651bf3e3505 /ipc
parentd2a4a177a25de3099c2a6bb0272211728261228d (diff)
downloadhistory-5f9861a66ce697389ea89236902ef6ef5f54225b.tar.gz
[PATCH] add file_accessed() helper
New inlined helper - file_accessed(file) (wrapper for update_atime())
Diffstat (limited to 'ipc')
-rw-r--r--ipc/shm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/shm.c b/ipc/shm.c
index 9721b42ec9d87c..4897cfe16f2783 100644
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -149,7 +149,7 @@ static void shm_close (struct vm_area_struct *shmd)
static int shm_mmap(struct file * file, struct vm_area_struct * vma)
{
- update_atime(file->f_dentry->d_inode);
+ file_accessed(file);
vma->vm_ops = &shm_vm_ops;
shm_inc(file->f_dentry->d_inode->i_ino);
return 0;