aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_vnode.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2007-08-28 21:46:47 -0400
committerTim Shimmin <tes@chook.melbourne.sgi.com>2007-10-15 21:39:25 -0400
commit1543d79c45a374f934f95ca34d87e2eeeb2039b4 (patch)
treeabe537e7c241f2a764687c54d805ebfdb5147e3c /fs/xfs/linux-2.6/xfs_vnode.h
parentb677c210cec0d6755335ffc01691982c417dd39e (diff)
[XFS] move v_trace from bhv_vnode to xfs_inode
struct bhv_vnode is on it's way out, so move the trace buffer to the XFS inode. Note that this makes the tracing macros rather misnamed, but this kind of fallout will be fixed up incrementally later on. SGI-PV: 969608 SGI-Modid: xfs-linux-melb:xfs-kern:29498a Signed-off-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: David Chinner <dgc@sgi.com> Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_vnode.h')
-rw-r--r--fs/xfs/linux-2.6/xfs_vnode.h21
1 files changed, 7 insertions, 14 deletions
diff --git a/fs/xfs/linux-2.6/xfs_vnode.h b/fs/xfs/linux-2.6/xfs_vnode.h
index 321346d95267..2b161361c1a0 100644
--- a/fs/xfs/linux-2.6/xfs_vnode.h
+++ b/fs/xfs/linux-2.6/xfs_vnode.h
@@ -29,9 +29,6 @@ typedef __u64 bhv_vnumber_t;
29 29
30typedef struct bhv_vnode { 30typedef struct bhv_vnode {
31 bhv_vnumber_t v_number; /* in-core vnode number */ 31 bhv_vnumber_t v_number; /* in-core vnode number */
32#ifdef XFS_VNODE_TRACE
33 struct ktrace *v_trace; /* trace header structure */
34#endif
35 struct inode v_inode; /* Linux inode */ 32 struct inode v_inode; /* Linux inode */
36 /* inode MUST be last */ 33 /* inode MUST be last */
37} bhv_vnode_t; 34} bhv_vnode_t;
@@ -222,9 +219,9 @@ extern bhv_vnode_t *vn_hold(struct bhv_vnode *);
222#if defined(XFS_VNODE_TRACE) 219#if defined(XFS_VNODE_TRACE)
223#define VN_HOLD(vp) \ 220#define VN_HOLD(vp) \
224 ((void)vn_hold(vp), \ 221 ((void)vn_hold(vp), \
225 vn_trace_hold(vp, __FILE__, __LINE__, (inst_t *)__return_address)) 222 vn_trace_hold(xfs_vtoi(vp), __FILE__, __LINE__, (inst_t *)__return_address))
226#define VN_RELE(vp) \ 223#define VN_RELE(vp) \
227 (vn_trace_rele(vp, __FILE__, __LINE__, (inst_t *)__return_address), \ 224 (vn_trace_rele(xfs_vtoi(vp), __FILE__, __LINE__, (inst_t *)__return_address), \
228 iput(vn_to_inode(vp))) 225 iput(vn_to_inode(vp)))
229#else 226#else
230#define VN_HOLD(vp) ((void)vn_hold(vp)) 227#define VN_HOLD(vp) ((void)vn_hold(vp))
@@ -314,21 +311,17 @@ static inline void vn_atime_to_time_t(bhv_vnode_t *vp, time_t *tt)
314#define VNODE_KTRACE_REF 4 311#define VNODE_KTRACE_REF 4
315#define VNODE_KTRACE_RELE 5 312#define VNODE_KTRACE_RELE 5
316 313
317extern void vn_trace_entry(struct bhv_vnode *, const char *, inst_t *); 314extern void vn_trace_entry(struct xfs_inode *, const char *, inst_t *);
318extern void vn_trace_exit(struct bhv_vnode *, const char *, inst_t *); 315extern void vn_trace_exit(struct xfs_inode *, const char *, inst_t *);
319extern void vn_trace_hold(struct bhv_vnode *, char *, int, inst_t *); 316extern void vn_trace_hold(struct xfs_inode *, char *, int, inst_t *);
320extern void vn_trace_ref(struct bhv_vnode *, char *, int, inst_t *); 317extern void vn_trace_ref(struct xfs_inode *, char *, int, inst_t *);
321extern void vn_trace_rele(struct bhv_vnode *, char *, int, inst_t *); 318extern void vn_trace_rele(struct xfs_inode *, char *, int, inst_t *);
322
323#define VN_TRACE(vp) \
324 vn_trace_ref(vp, __FILE__, __LINE__, (inst_t *)__return_address)
325#else 319#else
326#define vn_trace_entry(a,b,c) 320#define vn_trace_entry(a,b,c)
327#define vn_trace_exit(a,b,c) 321#define vn_trace_exit(a,b,c)
328#define vn_trace_hold(a,b,c,d) 322#define vn_trace_hold(a,b,c,d)
329#define vn_trace_ref(a,b,c,d) 323#define vn_trace_ref(a,b,c,d)
330#define vn_trace_rele(a,b,c,d) 324#define vn_trace_rele(a,b,c,d)
331#define VN_TRACE(vp)
332#endif 325#endif
333 326
334#endif /* __XFS_VNODE_H__ */ 327#endif /* __XFS_VNODE_H__ */