[Ocfs2-commits] mfasheh commits r2763 - branches/ocfs2-1.2/fs/ocfs2
svn-commits@oss.oracle.com
svn-commits at oss.oracle.com
Mon Feb 13 19:13:54 CST 2006
Author: mfasheh
Signed-off-by: zab
Date: 2006-02-13 19:13:54 -0600 (Mon, 13 Feb 2006)
New Revision: 2763
Modified:
branches/ocfs2-1.2/fs/ocfs2/mmap.c
Log:
* All kernels we care about have file_accessed() - use that instead.
Signed-off-by: zab
Modified: branches/ocfs2-1.2/fs/ocfs2/mmap.c
===================================================================
--- branches/ocfs2-1.2/fs/ocfs2/mmap.c 2006-02-08 00:58:20 UTC (rev 2762)
+++ branches/ocfs2-1.2/fs/ocfs2/mmap.c 2006-02-14 01:13:54 UTC (rev 2763)
@@ -152,9 +152,6 @@
int ocfs2_mmap(struct file *file,
struct vm_area_struct *vma)
{
- struct address_space *mapping = file->f_dentry->d_inode->i_mapping;
- struct inode *inode = mapping->host;
-
/* We don't want to support shared writable mappings yet. */
if (((vma->vm_flags & VM_SHARED) || (vma->vm_flags & VM_MAYSHARE))
&& ((vma->vm_flags & VM_WRITE) || (vma->vm_flags & VM_MAYWRITE))) {
@@ -164,7 +161,7 @@
return -EINVAL;
}
- update_atime(inode);
+ file_accessed(file);
vma->vm_ops = &ocfs2_file_vm_ops;
return 0;
}
More information about the Ocfs2-commits
mailing list