diff options
author | Nathan Scott <nathans@sgi.com> | 2006-06-09 03:00:52 -0400 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2006-06-09 03:00:52 -0400 |
commit | 67fcaa73adafb19139a7cd8ab133592b6a0a0901 (patch) | |
tree | 6e7b83e7c8b0a1d8b4776af1537d6f07ebe9435d /fs/xfs/xfs_dfrag.c | |
parent | b83bd1388133e914c38bd31d69bc90143e6ab10c (diff) |
[XFS] Resolve a namespace collision on vnode/vnodeops for FreeBSD porters.
SGI-PV: 953338
SGI-Modid: xfs-linux-melb:xfs-kern:26107a
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_dfrag.c')
-rw-r--r-- | fs/xfs/xfs_dfrag.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/xfs/xfs_dfrag.c b/fs/xfs/xfs_dfrag.c index 99daf8c0f900..29a6c866f2c3 100644 --- a/fs/xfs/xfs_dfrag.c +++ b/fs/xfs/xfs_dfrag.c | |||
@@ -57,7 +57,7 @@ xfs_swapext( | |||
57 | xfs_inode_t *ip=NULL, *tip=NULL; | 57 | xfs_inode_t *ip=NULL, *tip=NULL; |
58 | xfs_mount_t *mp; | 58 | xfs_mount_t *mp; |
59 | struct file *fp = NULL, *tfp = NULL; | 59 | struct file *fp = NULL, *tfp = NULL; |
60 | vnode_t *vp, *tvp; | 60 | bhv_vnode_t *vp, *tvp; |
61 | int error = 0; | 61 | int error = 0; |
62 | 62 | ||
63 | sxp = kmem_alloc(sizeof(xfs_swapext_t), KM_MAYFAIL); | 63 | sxp = kmem_alloc(sizeof(xfs_swapext_t), KM_MAYFAIL); |
@@ -137,7 +137,7 @@ xfs_swap_extents( | |||
137 | xfs_inode_t *ips[2]; | 137 | xfs_inode_t *ips[2]; |
138 | xfs_trans_t *tp; | 138 | xfs_trans_t *tp; |
139 | xfs_bstat_t *sbp = &sxp->sx_stat; | 139 | xfs_bstat_t *sbp = &sxp->sx_stat; |
140 | vnode_t *vp, *tvp; | 140 | bhv_vnode_t *vp, *tvp; |
141 | xfs_ifork_t *tempifp, *ifp, *tifp; | 141 | xfs_ifork_t *tempifp, *ifp, *tifp; |
142 | int ilf_fields, tilf_fields; | 142 | int ilf_fields, tilf_fields; |
143 | static uint lock_flags = XFS_ILOCK_EXCL | XFS_IOLOCK_EXCL; | 143 | static uint lock_flags = XFS_ILOCK_EXCL | XFS_IOLOCK_EXCL; |
@@ -202,7 +202,7 @@ xfs_swap_extents( | |||
202 | 202 | ||
203 | if (VN_CACHED(tvp) != 0) { | 203 | if (VN_CACHED(tvp) != 0) { |
204 | xfs_inval_cached_trace(&tip->i_iocore, 0, -1, 0, -1); | 204 | xfs_inval_cached_trace(&tip->i_iocore, 0, -1, 0, -1); |
205 | VOP_FLUSHINVAL_PAGES(tvp, 0, -1, FI_REMAPF_LOCKED); | 205 | bhv_vop_flushinval_pages(tvp, 0, -1, FI_REMAPF_LOCKED); |
206 | } | 206 | } |
207 | 207 | ||
208 | /* Verify O_DIRECT for ftmp */ | 208 | /* Verify O_DIRECT for ftmp */ |
@@ -247,7 +247,7 @@ xfs_swap_extents( | |||
247 | /* We need to fail if the file is memory mapped. Once we have tossed | 247 | /* We need to fail if the file is memory mapped. Once we have tossed |
248 | * all existing pages, the page fault will have no option | 248 | * all existing pages, the page fault will have no option |
249 | * but to go to the filesystem for pages. By making the page fault call | 249 | * but to go to the filesystem for pages. By making the page fault call |
250 | * VOP_READ (or write in the case of autogrow) they block on the iolock | 250 | * vop_read (or write in the case of autogrow) they block on the iolock |
251 | * until we have switched the extents. | 251 | * until we have switched the extents. |
252 | */ | 252 | */ |
253 | if (VN_MAPPED(vp)) { | 253 | if (VN_MAPPED(vp)) { |
@@ -266,7 +266,7 @@ xfs_swap_extents( | |||
266 | * fields change. | 266 | * fields change. |
267 | */ | 267 | */ |
268 | 268 | ||
269 | VOP_TOSS_PAGES(vp, 0, -1, FI_REMAPF); | 269 | bhv_vop_toss_pages(vp, 0, -1, FI_REMAPF); |
270 | 270 | ||
271 | tp = xfs_trans_alloc(mp, XFS_TRANS_SWAPEXT); | 271 | tp = xfs_trans_alloc(mp, XFS_TRANS_SWAPEXT); |
272 | if ((error = xfs_trans_reserve(tp, 0, | 272 | if ((error = xfs_trans_reserve(tp, 0, |