]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[XFS] kill shouty XFS_ITOV_NULL macro
authorDavid Chinner <david@fromorbit.com>
Wed, 13 Aug 2008 05:47:43 +0000 (15:47 +1000)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Wed, 13 Aug 2008 05:47:43 +0000 (15:47 +1000)
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 <david@fromorbit.com>
Signed-off-by: Niv Sardi <xaiki@sgi.com>
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/linux-2.6/xfs_vnode.c
fs/xfs/quota/xfs_qm_syscalls.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.h
fs/xfs/xfs_vfsops.c
fs/xfs/xfs_vnodeops.c

index 25488b6d98817241e1bb99f6e7b5701701fc6538..1e39d04c86c4a1691b2bcc50ab0f62a8ed688263 100644 (file)
@@ -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);
index adfb8723f65af336d92501163aff0ee095634828..132a0abb2f0be5ee52c7d2a3962dfcce8fdb4bd2 100644 (file)
@@ -1059,7 +1059,7 @@ again:
                        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);
index bedc66163176484b5dc7e7911637ab0059e6c0a8..46cecba0992802eb86f6b0e53d7e1917bdf7ce1b 100644 (file)
@@ -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;
@@ -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);
index 4a5e48c8ded2dcd2c9f1d6a7c9a78c24a4219950..f04e026f6e09e1d19aa1e321e5d08c2601a55a60 100644 (file)
@@ -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
index 4a9a43315a8662262906292d0d3c21293644d015..5f461ce444127d5a6593f2c9e620ed23cfdfa780 100644 (file)
@@ -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,
index 76a1166af8227ac0b45715986bcad98daa469c87..a2e470ae259af4ba138665c8c4cef4fcccda40db 100644 (file)
@@ -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;