aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_vnode.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2008-12-03 06:20:40 -0500
committerNiv Sardi <xaiki@sgi.com>2008-12-03 23:39:25 -0500
commit5a8d0f3c7af801c7263fbba39952504d6fc7ff60 (patch)
tree64e376493be44232ac1c0d66e2a68c5280f42ec1 /fs/xfs/linux-2.6/xfs_vnode.h
parent25e41b3d521f52771354a718042a753a3e77df0a (diff)
move inode tracing out of xfs_vnode.
Move the inode tracing into xfs_iget.c / xfs_inode.h and kill xfs_vnode.c now that it's empty. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <david@fromorbit.com> Signed-off-by: Niv Sardi <xaiki@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_vnode.h')
-rw-r--r--fs/xfs/linux-2.6/xfs_vnode.h48
1 files changed, 0 insertions, 48 deletions
diff --git a/fs/xfs/linux-2.6/xfs_vnode.h b/fs/xfs/linux-2.6/xfs_vnode.h
index bd3e05c47903..f65983a230d3 100644
--- a/fs/xfs/linux-2.6/xfs_vnode.h
+++ b/fs/xfs/linux-2.6/xfs_vnode.h
@@ -54,19 +54,6 @@ struct attrlist_cursor_kern;
54 Prevent VM access to the pages until 54 Prevent VM access to the pages until
55 the operation completes. */ 55 the operation completes. */
56 56
57#define IHOLD(ip) \
58do { \
59 ASSERT(atomic_read(&VFS_I(ip)->i_count) > 0) ; \
60 atomic_inc(&(VFS_I(ip)->i_count)); \
61 xfs_itrace_hold((ip), __FILE__, __LINE__, (inst_t *)__return_address); \
62} while (0)
63
64#define IRELE(ip) \
65do { \
66 xfs_itrace_rele((ip), __FILE__, __LINE__, (inst_t *)__return_address); \
67 iput(VFS_I(ip)); \
68} while (0)
69
70/* 57/*
71 * Dealing with bad inodes 58 * Dealing with bad inodes
72 */ 59 */
@@ -103,39 +90,4 @@ static inline void vn_atime_to_time_t(struct inode *vp, time_t *tt)
103 PAGECACHE_TAG_DIRTY) 90 PAGECACHE_TAG_DIRTY)
104 91
105 92
106/*
107 * Tracking vnode activity.
108 */
109#if defined(XFS_INODE_TRACE)
110
111#define INODE_TRACE_SIZE 16 /* number of trace entries */
112#define INODE_KTRACE_ENTRY 1
113#define INODE_KTRACE_EXIT 2
114#define INODE_KTRACE_HOLD 3
115#define INODE_KTRACE_REF 4
116#define INODE_KTRACE_RELE 5
117
118extern void _xfs_itrace_entry(struct xfs_inode *, const char *, inst_t *);
119extern void _xfs_itrace_exit(struct xfs_inode *, const char *, inst_t *);
120extern void xfs_itrace_hold(struct xfs_inode *, char *, int, inst_t *);
121extern void _xfs_itrace_ref(struct xfs_inode *, char *, int, inst_t *);
122extern void xfs_itrace_rele(struct xfs_inode *, char *, int, inst_t *);
123#define xfs_itrace_entry(ip) \
124 _xfs_itrace_entry(ip, __func__, (inst_t *)__return_address)
125#define xfs_itrace_exit(ip) \
126 _xfs_itrace_exit(ip, __func__, (inst_t *)__return_address)
127#define xfs_itrace_exit_tag(ip, tag) \
128 _xfs_itrace_exit(ip, tag, (inst_t *)__return_address)
129#define xfs_itrace_ref(ip) \
130 _xfs_itrace_ref(ip, __FILE__, __LINE__, (inst_t *)__return_address)
131
132#else
133#define xfs_itrace_entry(a)
134#define xfs_itrace_exit(a)
135#define xfs_itrace_exit_tag(a, b)
136#define xfs_itrace_hold(a, b, c, d)
137#define xfs_itrace_ref(a)
138#define xfs_itrace_rele(a, b, c, d)
139#endif
140
141#endif /* __XFS_VNODE_H__ */ 93#endif /* __XFS_VNODE_H__ */