diff options
-rw-r--r-- | fs/xfs/linux-2.6/xfs_ioctl.c | 4 | ||||
-rw-r--r-- | fs/xfs/linux-2.6/xfs_iops.c | 2 | ||||
-rw-r--r-- | fs/xfs/linux-2.6/xfs_linux.h | 2 | ||||
-rw-r--r-- | fs/xfs/linux-2.6/xfs_super.c | 2 | ||||
-rw-r--r-- | fs/xfs/quota/xfs_dquot.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_bmap.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_dfrag.c | 4 | ||||
-rw-r--r-- | fs/xfs/xfs_inode.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_inode.h | 1 | ||||
-rw-r--r-- | fs/xfs/xfs_itable.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_utils.h | 4 | ||||
-rw-r--r-- | fs/xfs/xfs_vfsops.c | 8 | ||||
-rw-r--r-- | fs/xfs/xfs_vnodeops.c | 12 |
13 files changed, 23 insertions, 24 deletions
diff --git a/fs/xfs/linux-2.6/xfs_ioctl.c b/fs/xfs/linux-2.6/xfs_ioctl.c index acb978d9d085..48799ba7e3e6 100644 --- a/fs/xfs/linux-2.6/xfs_ioctl.c +++ b/fs/xfs/linux-2.6/xfs_ioctl.c | |||
@@ -245,7 +245,7 @@ xfs_vget_fsop_handlereq( | |||
245 | 245 | ||
246 | xfs_iunlock(ip, XFS_ILOCK_SHARED); | 246 | xfs_iunlock(ip, XFS_ILOCK_SHARED); |
247 | 247 | ||
248 | *inode = XFS_ITOV(ip); | 248 | *inode = VFS_I(ip); |
249 | return 0; | 249 | return 0; |
250 | } | 250 | } |
251 | 251 | ||
@@ -927,7 +927,7 @@ STATIC void | |||
927 | xfs_diflags_to_linux( | 927 | xfs_diflags_to_linux( |
928 | struct xfs_inode *ip) | 928 | struct xfs_inode *ip) |
929 | { | 929 | { |
930 | struct inode *inode = XFS_ITOV(ip); | 930 | struct inode *inode = VFS_I(ip); |
931 | unsigned int xflags = xfs_ip2xflags(ip); | 931 | unsigned int xflags = xfs_ip2xflags(ip); |
932 | 932 | ||
933 | if (xflags & XFS_XFLAG_IMMUTABLE) | 933 | if (xflags & XFS_XFLAG_IMMUTABLE) |
diff --git a/fs/xfs/linux-2.6/xfs_iops.c b/fs/xfs/linux-2.6/xfs_iops.c index fec5ff5a2f17..cc0f21af48fe 100644 --- a/fs/xfs/linux-2.6/xfs_iops.c +++ b/fs/xfs/linux-2.6/xfs_iops.c | |||
@@ -101,7 +101,7 @@ xfs_ichgtime( | |||
101 | xfs_inode_t *ip, | 101 | xfs_inode_t *ip, |
102 | int flags) | 102 | int flags) |
103 | { | 103 | { |
104 | struct inode *inode = vn_to_inode(XFS_ITOV(ip)); | 104 | struct inode *inode = VFS_I(ip); |
105 | timespec_t tv; | 105 | timespec_t tv; |
106 | 106 | ||
107 | nanotime(&tv); | 107 | nanotime(&tv); |
diff --git a/fs/xfs/linux-2.6/xfs_linux.h b/fs/xfs/linux-2.6/xfs_linux.h index 4d45d9351a6c..a9cd6e410525 100644 --- a/fs/xfs/linux-2.6/xfs_linux.h +++ b/fs/xfs/linux-2.6/xfs_linux.h | |||
@@ -180,7 +180,7 @@ | |||
180 | #define xfs_sort(a,n,s,fn) sort(a,n,s,fn,NULL) | 180 | #define xfs_sort(a,n,s,fn) sort(a,n,s,fn,NULL) |
181 | #define xfs_stack_trace() dump_stack() | 181 | #define xfs_stack_trace() dump_stack() |
182 | #define xfs_itruncate_data(ip, off) \ | 182 | #define xfs_itruncate_data(ip, off) \ |
183 | (-vmtruncate(vn_to_inode(XFS_ITOV(ip)), (off))) | 183 | (-vmtruncate(vn_to_inode(VFS_I(ip)), (off))) |
184 | 184 | ||
185 | 185 | ||
186 | /* Move the kernel do_div definition off to one side */ | 186 | /* Move the kernel do_div definition off to one side */ |
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c index b49722940d6d..c9ec44a02e21 100644 --- a/fs/xfs/linux-2.6/xfs_super.c +++ b/fs/xfs/linux-2.6/xfs_super.c | |||
@@ -1131,7 +1131,7 @@ void | |||
1131 | xfs_flush_device( | 1131 | xfs_flush_device( |
1132 | xfs_inode_t *ip) | 1132 | xfs_inode_t *ip) |
1133 | { | 1133 | { |
1134 | struct inode *inode = vn_to_inode(XFS_ITOV(ip)); | 1134 | struct inode *inode = VFS_I(ip); |
1135 | 1135 | ||
1136 | igrab(inode); | 1136 | igrab(inode); |
1137 | xfs_syncd_queue_work(ip->i_mount, inode, xfs_flush_device_work); | 1137 | xfs_syncd_queue_work(ip->i_mount, inode, xfs_flush_device_work); |
diff --git a/fs/xfs/quota/xfs_dquot.c b/fs/xfs/quota/xfs_dquot.c index fc9f3fb39b7b..68adc5fd9b95 100644 --- a/fs/xfs/quota/xfs_dquot.c +++ b/fs/xfs/quota/xfs_dquot.c | |||
@@ -431,7 +431,7 @@ xfs_qm_dqalloc( | |||
431 | * when it unlocks the inode. Since we want to keep the quota | 431 | * when it unlocks the inode. Since we want to keep the quota |
432 | * inode around, we bump the vnode ref count now. | 432 | * inode around, we bump the vnode ref count now. |
433 | */ | 433 | */ |
434 | VN_HOLD(XFS_ITOV(quotip)); | 434 | VN_HOLD(VFS_I(quotip)); |
435 | 435 | ||
436 | xfs_trans_ijoin(tp, quotip, XFS_ILOCK_EXCL); | 436 | xfs_trans_ijoin(tp, quotip, XFS_ILOCK_EXCL); |
437 | nmaps = 1; | 437 | nmaps = 1; |
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c index 3c4beb3a4326..2f46b67f9320 100644 --- a/fs/xfs/xfs_bmap.c +++ b/fs/xfs/xfs_bmap.c | |||
@@ -4000,7 +4000,7 @@ xfs_bmap_add_attrfork( | |||
4000 | ip->i_d.di_aformat = XFS_DINODE_FMT_EXTENTS; | 4000 | ip->i_d.di_aformat = XFS_DINODE_FMT_EXTENTS; |
4001 | } | 4001 | } |
4002 | ASSERT(ip->i_d.di_anextents == 0); | 4002 | ASSERT(ip->i_d.di_anextents == 0); |
4003 | VN_HOLD(XFS_ITOV(ip)); | 4003 | VN_HOLD(VFS_I(ip)); |
4004 | xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); | 4004 | xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); |
4005 | xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); | 4005 | xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); |
4006 | switch (ip->i_d.di_format) { | 4006 | switch (ip->i_d.di_format) { |
diff --git a/fs/xfs/xfs_dfrag.c b/fs/xfs/xfs_dfrag.c index 2211e885ef24..9e751011e231 100644 --- a/fs/xfs/xfs_dfrag.c +++ b/fs/xfs/xfs_dfrag.c | |||
@@ -150,8 +150,8 @@ xfs_swap_extents( | |||
150 | } | 150 | } |
151 | 151 | ||
152 | sbp = &sxp->sx_stat; | 152 | sbp = &sxp->sx_stat; |
153 | vp = XFS_ITOV(ip); | 153 | vp = VFS_I(ip); |
154 | tvp = XFS_ITOV(tip); | 154 | tvp = VFS_I(tip); |
155 | 155 | ||
156 | /* Lock in i_ino order */ | 156 | /* Lock in i_ino order */ |
157 | if (ip->i_ino < tip->i_ino) { | 157 | if (ip->i_ino < tip->i_ino) { |
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index 46cecba09928..cfbafc937ee5 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c | |||
@@ -1408,7 +1408,7 @@ xfs_itruncate_start( | |||
1408 | (flags == XFS_ITRUNC_MAYBE)); | 1408 | (flags == XFS_ITRUNC_MAYBE)); |
1409 | 1409 | ||
1410 | mp = ip->i_mount; | 1410 | mp = ip->i_mount; |
1411 | vp = XFS_ITOV(ip); | 1411 | vp = VFS_I(ip); |
1412 | 1412 | ||
1413 | /* wait for the completion of any pending DIOs */ | 1413 | /* wait for the completion of any pending DIOs */ |
1414 | if (new_size < ip->i_size) | 1414 | if (new_size < ip->i_size) |
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h index f04e026f6e09..4e1e55e90779 100644 --- a/fs/xfs/xfs_inode.h +++ b/fs/xfs/xfs_inode.h | |||
@@ -279,7 +279,6 @@ static inline struct inode *VFS_I(struct xfs_inode *ip) | |||
279 | { | 279 | { |
280 | return (struct inode *)ip->i_vnode; | 280 | return (struct inode *)ip->i_vnode; |
281 | } | 281 | } |
282 | #define XFS_ITOV(ip) VFS_I(ip) | ||
283 | 282 | ||
284 | /* | 283 | /* |
285 | * i_flags helper functions | 284 | * i_flags helper functions |
diff --git a/fs/xfs/xfs_itable.c b/fs/xfs/xfs_itable.c index 9a3ef9dcaeb9..4feda541e714 100644 --- a/fs/xfs/xfs_itable.c +++ b/fs/xfs/xfs_itable.c | |||
@@ -72,7 +72,7 @@ xfs_bulkstat_one_iget( | |||
72 | ASSERT(ip != NULL); | 72 | ASSERT(ip != NULL); |
73 | ASSERT(ip->i_blkno != (xfs_daddr_t)0); | 73 | ASSERT(ip->i_blkno != (xfs_daddr_t)0); |
74 | 74 | ||
75 | vp = XFS_ITOV(ip); | 75 | vp = VFS_I(ip); |
76 | dic = &ip->i_d; | 76 | dic = &ip->i_d; |
77 | 77 | ||
78 | /* xfs_iget returns the following without needing | 78 | /* xfs_iget returns the following without needing |
diff --git a/fs/xfs/xfs_utils.h b/fs/xfs/xfs_utils.h index f316cb85d8e2..7b533dfea603 100644 --- a/fs/xfs/xfs_utils.h +++ b/fs/xfs/xfs_utils.h | |||
@@ -18,8 +18,8 @@ | |||
18 | #ifndef __XFS_UTILS_H__ | 18 | #ifndef __XFS_UTILS_H__ |
19 | #define __XFS_UTILS_H__ | 19 | #define __XFS_UTILS_H__ |
20 | 20 | ||
21 | #define IRELE(ip) VN_RELE(XFS_ITOV(ip)) | 21 | #define IRELE(ip) VN_RELE(VFS_I(ip)) |
22 | #define IHOLD(ip) VN_HOLD(XFS_ITOV(ip)) | 22 | #define IHOLD(ip) VN_HOLD(VFS_I(ip)) |
23 | 23 | ||
24 | extern int xfs_truncate_file(xfs_mount_t *, xfs_inode_t *); | 24 | extern int xfs_truncate_file(xfs_mount_t *, xfs_inode_t *); |
25 | extern int xfs_dir_ialloc(xfs_trans_t **, xfs_inode_t *, mode_t, xfs_nlink_t, | 25 | extern int xfs_dir_ialloc(xfs_trans_t **, xfs_inode_t *, mode_t, xfs_nlink_t, |
diff --git a/fs/xfs/xfs_vfsops.c b/fs/xfs/xfs_vfsops.c index 5f461ce44412..38450f1fa2ac 100644 --- a/fs/xfs/xfs_vfsops.c +++ b/fs/xfs/xfs_vfsops.c | |||
@@ -128,7 +128,7 @@ xfs_unmount_flush( | |||
128 | xfs_inode_t *rip = mp->m_rootip; | 128 | xfs_inode_t *rip = mp->m_rootip; |
129 | xfs_inode_t *rbmip; | 129 | xfs_inode_t *rbmip; |
130 | xfs_inode_t *rsumip = NULL; | 130 | xfs_inode_t *rsumip = NULL; |
131 | bhv_vnode_t *rvp = XFS_ITOV(rip); | 131 | bhv_vnode_t *rvp = VFS_I(rip); |
132 | int error; | 132 | int error; |
133 | 133 | ||
134 | xfs_ilock(rip, XFS_ILOCK_EXCL | XFS_ILOCK_PARENT); | 134 | xfs_ilock(rip, XFS_ILOCK_EXCL | XFS_ILOCK_PARENT); |
@@ -146,7 +146,7 @@ xfs_unmount_flush( | |||
146 | if (error == EFSCORRUPTED) | 146 | if (error == EFSCORRUPTED) |
147 | goto fscorrupt_out; | 147 | goto fscorrupt_out; |
148 | 148 | ||
149 | ASSERT(vn_count(XFS_ITOV(rbmip)) == 1); | 149 | ASSERT(vn_count(VFS_I(rbmip)) == 1); |
150 | 150 | ||
151 | rsumip = mp->m_rsumip; | 151 | rsumip = mp->m_rsumip; |
152 | xfs_ilock(rsumip, XFS_ILOCK_EXCL); | 152 | xfs_ilock(rsumip, XFS_ILOCK_EXCL); |
@@ -157,7 +157,7 @@ xfs_unmount_flush( | |||
157 | if (error == EFSCORRUPTED) | 157 | if (error == EFSCORRUPTED) |
158 | goto fscorrupt_out; | 158 | goto fscorrupt_out; |
159 | 159 | ||
160 | ASSERT(vn_count(XFS_ITOV(rsumip)) == 1); | 160 | ASSERT(vn_count(VFS_I(rsumip)) == 1); |
161 | } | 161 | } |
162 | 162 | ||
163 | /* | 163 | /* |
@@ -479,7 +479,7 @@ xfs_sync_inodes( | |||
479 | IPOINTER_INSERT(ip, mp); | 479 | IPOINTER_INSERT(ip, mp); |
480 | xfs_ilock(ip, lock_flags); | 480 | xfs_ilock(ip, lock_flags); |
481 | 481 | ||
482 | ASSERT(vp == XFS_ITOV(ip)); | 482 | ASSERT(vp == VFS_I(ip)); |
483 | ASSERT(ip->i_mount == mp); | 483 | ASSERT(ip->i_mount == mp); |
484 | 484 | ||
485 | vnode_refed = B_TRUE; | 485 | vnode_refed = B_TRUE; |
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c index a2e470ae259a..35a053fd161b 100644 --- a/fs/xfs/xfs_vnodeops.c +++ b/fs/xfs/xfs_vnodeops.c | |||
@@ -83,7 +83,7 @@ xfs_setattr( | |||
83 | cred_t *credp) | 83 | cred_t *credp) |
84 | { | 84 | { |
85 | xfs_mount_t *mp = ip->i_mount; | 85 | xfs_mount_t *mp = ip->i_mount; |
86 | struct inode *inode = XFS_ITOV(ip); | 86 | struct inode *inode = VFS_I(ip); |
87 | int mask = iattr->ia_valid; | 87 | int mask = iattr->ia_valid; |
88 | xfs_trans_t *tp; | 88 | xfs_trans_t *tp; |
89 | int code; | 89 | int code; |
@@ -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(XFS_ITOV(ip))->i_mapping); | 717 | error = filemap_fdatawait(vn_to_inode(VFS_I(ip))->i_mapping); |
718 | if (error) | 718 | if (error) |
719 | return XFS_ERROR(error); | 719 | return XFS_ERROR(error); |
720 | 720 | ||
@@ -1160,7 +1160,7 @@ int | |||
1160 | xfs_release( | 1160 | xfs_release( |
1161 | xfs_inode_t *ip) | 1161 | xfs_inode_t *ip) |
1162 | { | 1162 | { |
1163 | bhv_vnode_t *vp = XFS_ITOV(ip); | 1163 | bhv_vnode_t *vp = VFS_I(ip); |
1164 | xfs_mount_t *mp = ip->i_mount; | 1164 | xfs_mount_t *mp = ip->i_mount; |
1165 | int error; | 1165 | int error; |
1166 | 1166 | ||
@@ -1227,7 +1227,7 @@ int | |||
1227 | xfs_inactive( | 1227 | xfs_inactive( |
1228 | xfs_inode_t *ip) | 1228 | xfs_inode_t *ip) |
1229 | { | 1229 | { |
1230 | bhv_vnode_t *vp = XFS_ITOV(ip); | 1230 | bhv_vnode_t *vp = VFS_I(ip); |
1231 | xfs_bmap_free_t free_list; | 1231 | xfs_bmap_free_t free_list; |
1232 | xfs_fsblock_t first_block; | 1232 | xfs_fsblock_t first_block; |
1233 | int committed; | 1233 | int committed; |
@@ -2873,7 +2873,7 @@ int | |||
2873 | xfs_reclaim( | 2873 | xfs_reclaim( |
2874 | xfs_inode_t *ip) | 2874 | xfs_inode_t *ip) |
2875 | { | 2875 | { |
2876 | bhv_vnode_t *vp = XFS_ITOV(ip); | 2876 | bhv_vnode_t *vp = VFS_I(ip); |
2877 | 2877 | ||
2878 | xfs_itrace_entry(ip); | 2878 | xfs_itrace_entry(ip); |
2879 | 2879 | ||
@@ -3341,7 +3341,7 @@ xfs_free_file_space( | |||
3341 | xfs_trans_t *tp; | 3341 | xfs_trans_t *tp; |
3342 | int need_iolock = 1; | 3342 | int need_iolock = 1; |
3343 | 3343 | ||
3344 | vp = XFS_ITOV(ip); | 3344 | vp = VFS_I(ip); |
3345 | mp = ip->i_mount; | 3345 | mp = ip->i_mount; |
3346 | 3346 | ||
3347 | xfs_itrace_entry(ip); | 3347 | xfs_itrace_entry(ip); |