aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_vnode.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2006-06-09 03:00:52 -0400
committerNathan Scott <nathans@sgi.com>2006-06-09 03:00:52 -0400
commit67fcaa73adafb19139a7cd8ab133592b6a0a0901 (patch)
tree6e7b83e7c8b0a1d8b4776af1537d6f07ebe9435d /fs/xfs/linux-2.6/xfs_vnode.c
parentb83bd1388133e914c38bd31d69bc90143e6ab10c (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.c32
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
40void 40void
41vn_iowait( 41vn_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
49void 49void
50vn_iowake( 50vn_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 */
62void 62void
63vn_ioerror( 63vn_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
73struct vnode * 73bhv_vnode_t *
74vn_initialize( 74vn_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 */
111void 111void
112vn_revalidate_core( 112vn_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 */
147int 147int
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
164int 164int
165vn_revalidate( 165vn_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 */
176struct vnode * 176bhv_vnode_t *
177vn_hold( 177vn_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 */
210void 210void
211vn_trace_entry(vnode_t *vp, const char *func, inst_t *ra) 211vn_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
216void 216void
217vn_trace_exit(vnode_t *vp, const char *func, inst_t *ra) 217vn_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
222void 222void
223vn_trace_hold(vnode_t *vp, char *file, int line, inst_t *ra) 223vn_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
228void 228void
229vn_trace_ref(vnode_t *vp, char *file, int line, inst_t *ra) 229vn_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
234void 234void
235vn_trace_rele(vnode_t *vp, char *file, int line, inst_t *ra) 235vn_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}