diff options
author | Christoph Hellwig <hch@infradead.org> | 2008-08-13 02:12:05 -0400 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-08-13 02:12:05 -0400 |
commit | 863890cd90e8b213f7028036c6e2200d93223527 (patch) | |
tree | 3b4312d515113e4b19d7e82fea9902c69d183d60 /fs/xfs/xfs_vnodeops.c | |
parent | a19d033cd2cc66120f01b370ec081d67b59b7924 (diff) |
[XFS] kill vn_to_inode
bhv_vnode_t is just a typedef for struct inode, so there's
no need for a helper to convert between the two.
SGI-PV: 981498
SGI-Modid: xfs-linux-melb:xfs-kern:31761a
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_vnodeops.c')
-rw-r--r-- | fs/xfs/xfs_vnodeops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c index 35a053fd161b..c5dc7ea85260 100644 --- a/fs/xfs/xfs_vnodeops.c +++ b/fs/xfs/xfs_vnodeops.c | |||
@@ -714,7 +714,7 @@ xfs_fsync( | |||
714 | return XFS_ERROR(EIO); | 714 | return XFS_ERROR(EIO); |
715 | 715 | ||
716 | /* capture size updates in I/O completion before writing the inode. */ | 716 | /* capture size updates in I/O completion before writing the inode. */ |
717 | error = filemap_fdatawait(vn_to_inode(VFS_I(ip))->i_mapping); | 717 | error = filemap_fdatawait(VFS_I(ip)->i_mapping); |
718 | if (error) | 718 | if (error) |
719 | return XFS_ERROR(error); | 719 | return XFS_ERROR(error); |
720 | 720 | ||
@@ -2917,7 +2917,7 @@ xfs_reclaim( | |||
2917 | XFS_MOUNT_ILOCK(mp); | 2917 | XFS_MOUNT_ILOCK(mp); |
2918 | spin_lock(&ip->i_flags_lock); | 2918 | spin_lock(&ip->i_flags_lock); |
2919 | __xfs_iflags_set(ip, XFS_IRECLAIMABLE); | 2919 | __xfs_iflags_set(ip, XFS_IRECLAIMABLE); |
2920 | vn_to_inode(vp)->i_private = NULL; | 2920 | vp->i_private = NULL; |
2921 | ip->i_vnode = NULL; | 2921 | ip->i_vnode = NULL; |
2922 | spin_unlock(&ip->i_flags_lock); | 2922 | spin_unlock(&ip->i_flags_lock); |
2923 | list_add_tail(&ip->i_reclaim, &mp->m_del_inodes); | 2923 | list_add_tail(&ip->i_reclaim, &mp->m_del_inodes); |