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/linux-2.6/xfs_vnode.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/linux-2.6/xfs_vnode.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_vnode.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/fs/xfs/linux-2.6/xfs_vnode.c b/fs/xfs/linux-2.6/xfs_vnode.c index 82777f1a70a7..66e36e195f29 100644 --- a/fs/xfs/linux-2.6/xfs_vnode.c +++ b/fs/xfs/linux-2.6/xfs_vnode.c | |||
@@ -39,7 +39,7 @@ vn_init(void) | |||
39 | 39 | ||
40 | void | 40 | void |
41 | vn_iowait( | 41 | vn_iowait( |
42 | struct vnode *vp) | 42 | bhv_vnode_t *vp) |
43 | { | 43 | { |
44 | wait_queue_head_t *wq = vptosync(vp); | 44 | wait_queue_head_t *wq = vptosync(vp); |
45 | 45 | ||
@@ -48,7 +48,7 @@ vn_iowait( | |||
48 | 48 | ||
49 | void | 49 | void |
50 | vn_iowake( | 50 | vn_iowake( |
51 | struct vnode *vp) | 51 | bhv_vnode_t *vp) |
52 | { | 52 | { |
53 | if (atomic_dec_and_test(&vp->v_iocount)) | 53 | if (atomic_dec_and_test(&vp->v_iocount)) |
54 | wake_up(vptosync(vp)); | 54 | wake_up(vptosync(vp)); |
@@ -61,7 +61,7 @@ vn_iowake( | |||
61 | */ | 61 | */ |
62 | void | 62 | void |
63 | vn_ioerror( | 63 | vn_ioerror( |
64 | struct vnode *vp, | 64 | bhv_vnode_t *vp, |
65 | int error, | 65 | int error, |
66 | char *f, | 66 | char *f, |
67 | int l) | 67 | int l) |
@@ -70,11 +70,11 @@ vn_ioerror( | |||
70 | bhv_vfs_force_shutdown(vp->v_vfsp, SHUTDOWN_DEVICE_REQ, f, l); | 70 | bhv_vfs_force_shutdown(vp->v_vfsp, SHUTDOWN_DEVICE_REQ, f, l); |
71 | } | 71 | } |
72 | 72 | ||
73 | struct vnode * | 73 | bhv_vnode_t * |
74 | vn_initialize( | 74 | vn_initialize( |
75 | struct inode *inode) | 75 | struct inode *inode) |
76 | { | 76 | { |
77 | struct vnode *vp = vn_from_inode(inode); | 77 | bhv_vnode_t *vp = vn_from_inode(inode); |
78 | 78 | ||
79 | XFS_STATS_INC(vn_active); | 79 | XFS_STATS_INC(vn_active); |
80 | XFS_STATS_INC(vn_alloc); | 80 | XFS_STATS_INC(vn_alloc); |
@@ -110,7 +110,7 @@ vn_initialize( | |||
110 | */ | 110 | */ |
111 | void | 111 | void |
112 | vn_revalidate_core( | 112 | vn_revalidate_core( |
113 | struct vnode *vp, | 113 | bhv_vnode_t *vp, |
114 | vattr_t *vap) | 114 | vattr_t *vap) |
115 | { | 115 | { |
116 | struct inode *inode = vn_to_inode(vp); | 116 | struct inode *inode = vn_to_inode(vp); |
@@ -146,14 +146,14 @@ vn_revalidate_core( | |||
146 | */ | 146 | */ |
147 | int | 147 | int |
148 | __vn_revalidate( | 148 | __vn_revalidate( |
149 | struct vnode *vp, | 149 | bhv_vnode_t *vp, |
150 | struct vattr *vattr) | 150 | struct vattr *vattr) |
151 | { | 151 | { |
152 | int error; | 152 | int error; |
153 | 153 | ||
154 | vn_trace_entry(vp, __FUNCTION__, (inst_t *)__return_address); | 154 | vn_trace_entry(vp, __FUNCTION__, (inst_t *)__return_address); |
155 | vattr->va_mask = XFS_AT_STAT | XFS_AT_XFLAGS; | 155 | vattr->va_mask = XFS_AT_STAT | XFS_AT_XFLAGS; |
156 | VOP_GETATTR(vp, vattr, 0, NULL, error); | 156 | error = bhv_vop_getattr(vp, vattr, 0, NULL); |
157 | if (likely(!error)) { | 157 | if (likely(!error)) { |
158 | vn_revalidate_core(vp, vattr); | 158 | vn_revalidate_core(vp, vattr); |
159 | VUNMODIFY(vp); | 159 | VUNMODIFY(vp); |
@@ -163,7 +163,7 @@ __vn_revalidate( | |||
163 | 163 | ||
164 | int | 164 | int |
165 | vn_revalidate( | 165 | vn_revalidate( |
166 | struct vnode *vp) | 166 | bhv_vnode_t *vp) |
167 | { | 167 | { |
168 | vattr_t vattr; | 168 | vattr_t vattr; |
169 | 169 | ||
@@ -173,9 +173,9 @@ vn_revalidate( | |||
173 | /* | 173 | /* |
174 | * Add a reference to a referenced vnode. | 174 | * Add a reference to a referenced vnode. |
175 | */ | 175 | */ |
176 | struct vnode * | 176 | bhv_vnode_t * |
177 | vn_hold( | 177 | vn_hold( |
178 | struct vnode *vp) | 178 | bhv_vnode_t *vp) |
179 | { | 179 | { |
180 | struct inode *inode; | 180 | struct inode *inode; |
181 | 181 | ||
@@ -208,31 +208,31 @@ vn_hold( | |||
208 | * Vnode tracing code. | 208 | * Vnode tracing code. |
209 | */ | 209 | */ |
210 | void | 210 | void |
211 | vn_trace_entry(vnode_t *vp, const char *func, inst_t *ra) | 211 | vn_trace_entry(bhv_vnode_t *vp, const char *func, inst_t *ra) |
212 | { | 212 | { |
213 | KTRACE_ENTER(vp, VNODE_KTRACE_ENTRY, func, 0, ra); | 213 | KTRACE_ENTER(vp, VNODE_KTRACE_ENTRY, func, 0, ra); |
214 | } | 214 | } |
215 | 215 | ||
216 | void | 216 | void |
217 | vn_trace_exit(vnode_t *vp, const char *func, inst_t *ra) | 217 | vn_trace_exit(bhv_vnode_t *vp, const char *func, inst_t *ra) |
218 | { | 218 | { |
219 | KTRACE_ENTER(vp, VNODE_KTRACE_EXIT, func, 0, ra); | 219 | KTRACE_ENTER(vp, VNODE_KTRACE_EXIT, func, 0, ra); |
220 | } | 220 | } |
221 | 221 | ||
222 | void | 222 | void |
223 | vn_trace_hold(vnode_t *vp, char *file, int line, inst_t *ra) | 223 | vn_trace_hold(bhv_vnode_t *vp, char *file, int line, inst_t *ra) |
224 | { | 224 | { |
225 | KTRACE_ENTER(vp, VNODE_KTRACE_HOLD, file, line, ra); | 225 | KTRACE_ENTER(vp, VNODE_KTRACE_HOLD, file, line, ra); |
226 | } | 226 | } |
227 | 227 | ||
228 | void | 228 | void |
229 | vn_trace_ref(vnode_t *vp, char *file, int line, inst_t *ra) | 229 | vn_trace_ref(bhv_vnode_t *vp, char *file, int line, inst_t *ra) |
230 | { | 230 | { |
231 | KTRACE_ENTER(vp, VNODE_KTRACE_REF, file, line, ra); | 231 | KTRACE_ENTER(vp, VNODE_KTRACE_REF, file, line, ra); |
232 | } | 232 | } |
233 | 233 | ||
234 | void | 234 | void |
235 | vn_trace_rele(vnode_t *vp, char *file, int line, inst_t *ra) | 235 | vn_trace_rele(bhv_vnode_t *vp, char *file, int line, inst_t *ra) |
236 | { | 236 | { |
237 | KTRACE_ENTER(vp, VNODE_KTRACE_RELE, file, line, ra); | 237 | KTRACE_ENTER(vp, VNODE_KTRACE_RELE, file, line, ra); |
238 | } | 238 | } |