Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28413
b: refs/heads/master
c: fbc1462
h: refs/heads/master
i:
  28411: 47331ad
v: v3
  • Loading branch information
Nathan Scott committed Jun 9, 2006
1 parent 66df020 commit bb1a874
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ba0b92d671c36cbebd66a306790c9b66a3224d83
refs/heads/master: fbc1462bcb421620a04eb390fc79a2615c9d01d0
20 changes: 3 additions & 17 deletions trunk/fs/xfs/linux-2.6/xfs_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,15 +362,10 @@ xfs_vm_nopage(
{
struct inode *inode = area->vm_file->f_dentry->d_inode;
vnode_t *vp = vn_from_inode(inode);
xfs_mount_t *mp = XFS_VFSTOM(vp->v_vfsp);
int error;

ASSERT_ALWAYS(vp->v_vfsp->vfs_flag & VFS_DMI);

error = XFS_SEND_MMAP(mp, area, 0);
if (error)
if (XFS_SEND_MMAP(XFS_VFSTOM(vp->v_vfsp), area, 0))
return NULL;

return filemap_nopage(area, address, type);
}
#endif /* CONFIG_XFS_DMAPI */
Expand Down Expand Up @@ -456,23 +451,14 @@ xfs_file_mmap(
struct file *filp,
struct vm_area_struct *vma)
{
struct inode *ip = filp->f_dentry->d_inode;
vnode_t *vp = vn_from_inode(ip);
vattr_t vattr;
int error;

vma->vm_ops = &xfs_file_vm_ops;

#ifdef CONFIG_XFS_DMAPI
if (vp->v_vfsp->vfs_flag & VFS_DMI) {
if (vn_from_inode(filp->f_dentry->d_inode)->v_vfsp->vfs_flag & VFS_DMI)
vma->vm_ops = &xfs_dmapi_file_vm_ops;
}
#endif /* CONFIG_XFS_DMAPI */

vattr.va_mask = XFS_AT_UPDATIME;
VOP_SETATTR(vp, &vattr, XFS_AT_UPDATIME, NULL, error);
if (likely(!error))
__vn_revalidate(vp, &vattr); /* update flags */
file_accessed(filp);
return 0;
}

Expand Down

0 comments on commit bb1a874

Please sign in to comment.