diff options
| author | David Chinner <david@fromorbit.com> | 2008-08-13 01:47:43 -0400 |
|---|---|---|
| committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-08-13 01:47:43 -0400 |
| commit | 705db4a24e0576f30d736de3c49623b4686ce473 (patch) | |
| tree | f87bf78c747a7886043b93483775d2eb9ca49e20 | |
| parent | 016516462575d28fab3354f762cad16c86c09116 (diff) | |
[XFS] kill shouty XFS_ITOV_NULL macro
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>
| -rw-r--r-- | fs/xfs/linux-2.6/xfs_vnode.c | 2 | ||||
| -rw-r--r-- | fs/xfs/quota/xfs_qm_syscalls.c | 2 | ||||
| -rw-r--r-- | fs/xfs/xfs_inode.c | 4 | ||||
| -rw-r--r-- | fs/xfs/xfs_inode.h | 1 | ||||
| -rw-r--r-- | fs/xfs/xfs_vfsops.c | 2 | ||||
| -rw-r--r-- | fs/xfs/xfs_vnodeops.c | 2 |
6 files changed, 6 insertions, 7 deletions
diff --git a/fs/xfs/linux-2.6/xfs_vnode.c b/fs/xfs/linux-2.6/xfs_vnode.c index 25488b6d9881..1e39d04c86c4 100644 --- a/fs/xfs/linux-2.6/xfs_vnode.c +++ b/fs/xfs/linux-2.6/xfs_vnode.c | |||
| @@ -108,7 +108,7 @@ vn_hold( | |||
| 108 | */ | 108 | */ |
| 109 | static inline int xfs_icount(struct xfs_inode *ip) | 109 | static inline int xfs_icount(struct xfs_inode *ip) |
| 110 | { | 110 | { |
| 111 | bhv_vnode_t *vp = XFS_ITOV_NULL(ip); | 111 | bhv_vnode_t *vp = VFS_I(ip); |
| 112 | 112 | ||
| 113 | if (vp) | 113 | if (vp) |
| 114 | return vn_count(vp); | 114 | return vn_count(vp); |
diff --git a/fs/xfs/quota/xfs_qm_syscalls.c b/fs/xfs/quota/xfs_qm_syscalls.c index adfb8723f65a..132a0abb2f0b 100644 --- a/fs/xfs/quota/xfs_qm_syscalls.c +++ b/fs/xfs/quota/xfs_qm_syscalls.c | |||
| @@ -1059,7 +1059,7 @@ again: | |||
| 1059 | ip = ip->i_mnext; | 1059 | ip = ip->i_mnext; |
| 1060 | continue; | 1060 | continue; |
| 1061 | } | 1061 | } |
| 1062 | vp = XFS_ITOV_NULL(ip); | 1062 | vp = VFS_I(ip); |
| 1063 | if (!vp) { | 1063 | if (!vp) { |
| 1064 | ASSERT(ip->i_udquot == NULL); | 1064 | ASSERT(ip->i_udquot == NULL); |
| 1065 | ASSERT(ip->i_gdquot == NULL); | 1065 | ASSERT(ip->i_gdquot == NULL); |
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index bedc66163176..46cecba09928 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c | |||
| @@ -1077,7 +1077,7 @@ xfs_ialloc( | |||
| 1077 | } | 1077 | } |
| 1078 | ASSERT(ip != NULL); | 1078 | ASSERT(ip != NULL); |
| 1079 | 1079 | ||
| 1080 | vp = XFS_ITOV(ip); | 1080 | vp = VFS_I(ip); |
| 1081 | ip->i_d.di_mode = (__uint16_t)mode; | 1081 | ip->i_d.di_mode = (__uint16_t)mode; |
| 1082 | ip->i_d.di_onlink = 0; | 1082 | ip->i_d.di_onlink = 0; |
| 1083 | ip->i_d.di_nlink = nlink; | 1083 | ip->i_d.di_nlink = nlink; |
| @@ -3480,7 +3480,7 @@ xfs_iflush_all( | |||
| 3480 | continue; | 3480 | continue; |
| 3481 | } | 3481 | } |
| 3482 | 3482 | ||
| 3483 | vp = XFS_ITOV_NULL(ip); | 3483 | vp = VFS_I(ip); |
| 3484 | if (!vp) { | 3484 | if (!vp) { |
| 3485 | XFS_MOUNT_IUNLOCK(mp); | 3485 | XFS_MOUNT_IUNLOCK(mp); |
| 3486 | xfs_finish_reclaim(ip, 0, XFS_IFLUSH_ASYNC); | 3486 | xfs_finish_reclaim(ip, 0, XFS_IFLUSH_ASYNC); |
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h index 4a5e48c8ded2..f04e026f6e09 100644 --- a/fs/xfs/xfs_inode.h +++ b/fs/xfs/xfs_inode.h | |||
| @@ -280,7 +280,6 @@ static inline struct inode *VFS_I(struct xfs_inode *ip) | |||
| 280 | return (struct inode *)ip->i_vnode; | 280 | return (struct inode *)ip->i_vnode; |
| 281 | } | 281 | } |
| 282 | #define XFS_ITOV(ip) VFS_I(ip) | 282 | #define XFS_ITOV(ip) VFS_I(ip) |
| 283 | #define XFS_ITOV_NULL(ip) VFS_I(ip) | ||
| 284 | 283 | ||
| 285 | /* | 284 | /* |
| 286 | * i_flags helper functions | 285 | * i_flags helper functions |
diff --git a/fs/xfs/xfs_vfsops.c b/fs/xfs/xfs_vfsops.c index 4a9a43315a86..5f461ce44412 100644 --- a/fs/xfs/xfs_vfsops.c +++ b/fs/xfs/xfs_vfsops.c | |||
| @@ -404,7 +404,7 @@ xfs_sync_inodes( | |||
| 404 | continue; | 404 | continue; |
| 405 | } | 405 | } |
| 406 | 406 | ||
| 407 | vp = XFS_ITOV_NULL(ip); | 407 | vp = VFS_I(ip); |
| 408 | 408 | ||
| 409 | /* | 409 | /* |
| 410 | * If the vnode is gone then this is being torn down, | 410 | * If the vnode is gone then this is being torn down, |
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c index 76a1166af822..a2e470ae259a 100644 --- a/fs/xfs/xfs_vnodeops.c +++ b/fs/xfs/xfs_vnodeops.c | |||
| @@ -2933,7 +2933,7 @@ xfs_finish_reclaim( | |||
| 2933 | int sync_mode) | 2933 | int sync_mode) |
| 2934 | { | 2934 | { |
| 2935 | xfs_perag_t *pag = xfs_get_perag(ip->i_mount, ip->i_ino); | 2935 | xfs_perag_t *pag = xfs_get_perag(ip->i_mount, ip->i_ino); |
| 2936 | bhv_vnode_t *vp = XFS_ITOV_NULL(ip); | 2936 | bhv_vnode_t *vp = VFS_I(ip); |
| 2937 | 2937 | ||
| 2938 | if (vp && VN_BAD(vp)) | 2938 | if (vp && VN_BAD(vp)) |
| 2939 | goto reclaim; | 2939 | goto reclaim; |
