Skip to content

Commit

Permalink
[XFS] kill shouty XFS_ITOV_NULL macro
Browse files Browse the repository at this point in the history
Replace XFS_ITOV_NULL() with the new VFS_I() inline.

SGI-PV: 981498

SGI-Modid: xfs-linux-melb:xfs-kern:31722a

Signed-off-by: David Chinner <[email protected]>
Signed-off-by: Niv Sardi <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: Lachlan McIlroy <[email protected]>
  • Loading branch information
dchinner authored and Lachlan McIlroy committed Aug 13, 2008
1 parent 0165164 commit 705db4a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion fs/xfs/linux-2.6/xfs_vnode.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ vn_hold(
*/
static inline int xfs_icount(struct xfs_inode *ip)
{
bhv_vnode_t *vp = XFS_ITOV_NULL(ip);
bhv_vnode_t *vp = VFS_I(ip);

if (vp)
return vn_count(vp);
Expand Down
2 changes: 1 addition & 1 deletion fs/xfs/quota/xfs_qm_syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,7 @@ xfs_qm_dqrele_all_inodes(
ip = ip->i_mnext;
continue;
}
vp = XFS_ITOV_NULL(ip);
vp = VFS_I(ip);
if (!vp) {
ASSERT(ip->i_udquot == NULL);
ASSERT(ip->i_gdquot == NULL);
Expand Down
4 changes: 2 additions & 2 deletions fs/xfs/xfs_inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ xfs_ialloc(
}
ASSERT(ip != NULL);

vp = XFS_ITOV(ip);
vp = VFS_I(ip);
ip->i_d.di_mode = (__uint16_t)mode;
ip->i_d.di_onlink = 0;
ip->i_d.di_nlink = nlink;
Expand Down Expand Up @@ -3480,7 +3480,7 @@ xfs_iflush_all(
continue;
}

vp = XFS_ITOV_NULL(ip);
vp = VFS_I(ip);
if (!vp) {
XFS_MOUNT_IUNLOCK(mp);
xfs_finish_reclaim(ip, 0, XFS_IFLUSH_ASYNC);
Expand Down
1 change: 0 additions & 1 deletion fs/xfs/xfs_inode.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ static inline struct inode *VFS_I(struct xfs_inode *ip)
return (struct inode *)ip->i_vnode;
}
#define XFS_ITOV(ip) VFS_I(ip)
#define XFS_ITOV_NULL(ip) VFS_I(ip)

/*
* i_flags helper functions
Expand Down
2 changes: 1 addition & 1 deletion fs/xfs/xfs_vfsops.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ xfs_sync_inodes(
continue;
}

vp = XFS_ITOV_NULL(ip);
vp = VFS_I(ip);

/*
* If the vnode is gone then this is being torn down,
Expand Down
2 changes: 1 addition & 1 deletion fs/xfs/xfs_vnodeops.c
Original file line number Diff line number Diff line change
Expand Up @@ -2933,7 +2933,7 @@ xfs_finish_reclaim(
int sync_mode)
{
xfs_perag_t *pag = xfs_get_perag(ip->i_mount, ip->i_ino);
bhv_vnode_t *vp = XFS_ITOV_NULL(ip);
bhv_vnode_t *vp = VFS_I(ip);

if (vp && VN_BAD(vp))
goto reclaim;
Expand Down

0 comments on commit 705db4a

Please sign in to comment.