diff options
author | Christoph Hellwig <hch@lst.de> | 2008-12-03 06:20:40 -0500 |
---|---|---|
committer | Niv Sardi <xaiki@sgi.com> | 2008-12-03 23:39:25 -0500 |
commit | 5a8d0f3c7af801c7263fbba39952504d6fc7ff60 (patch) | |
tree | 64e376493be44232ac1c0d66e2a68c5280f42ec1 /fs/xfs/linux-2.6/xfs_vnode.c | |
parent | 25e41b3d521f52771354a718042a753a3e77df0a (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.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_vnode.c | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/fs/xfs/linux-2.6/xfs_vnode.c b/fs/xfs/linux-2.6/xfs_vnode.c deleted file mode 100644 index f6d141122792..000000000000 --- a/fs/xfs/linux-2.6/xfs_vnode.c +++ /dev/null | |||
@@ -1,82 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2000-2003,2005 Silicon Graphics, Inc. | ||
3 | * All Rights Reserved. | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or | ||
6 | * modify it under the terms of the GNU General Public License as | ||
7 | * published by the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope that it would be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program; if not, write the Free Software Foundation, | ||
16 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
17 | */ | ||
18 | #include "xfs.h" | ||
19 | #include "xfs_vnodeops.h" | ||
20 | #include "xfs_bmap_btree.h" | ||
21 | #include "xfs_inode.h" | ||
22 | |||
23 | /* | ||
24 | * And this gunk is needed for xfs_mount.h" | ||
25 | */ | ||
26 | #include "xfs_log.h" | ||
27 | #include "xfs_trans.h" | ||
28 | #include "xfs_sb.h" | ||
29 | #include "xfs_dmapi.h" | ||
30 | #include "xfs_inum.h" | ||
31 | #include "xfs_ag.h" | ||
32 | #include "xfs_mount.h" | ||
33 | |||
34 | |||
35 | #ifdef XFS_INODE_TRACE | ||
36 | |||
37 | #define KTRACE_ENTER(ip, vk, s, line, ra) \ | ||
38 | ktrace_enter( (ip)->i_trace, \ | ||
39 | /* 0 */ (void *)(__psint_t)(vk), \ | ||
40 | /* 1 */ (void *)(s), \ | ||
41 | /* 2 */ (void *)(__psint_t) line, \ | ||
42 | /* 3 */ (void *)(__psint_t)atomic_read(&VFS_I(ip)->i_count), \ | ||
43 | /* 4 */ (void *)(ra), \ | ||
44 | /* 5 */ NULL, \ | ||
45 | /* 6 */ (void *)(__psint_t)current_cpu(), \ | ||
46 | /* 7 */ (void *)(__psint_t)current_pid(), \ | ||
47 | /* 8 */ (void *)__return_address, \ | ||
48 | /* 9 */ NULL, NULL, NULL, NULL, NULL, NULL, NULL) | ||
49 | |||
50 | /* | ||
51 | * Vnode tracing code. | ||
52 | */ | ||
53 | void | ||
54 | _xfs_itrace_entry(xfs_inode_t *ip, const char *func, inst_t *ra) | ||
55 | { | ||
56 | KTRACE_ENTER(ip, INODE_KTRACE_ENTRY, func, 0, ra); | ||
57 | } | ||
58 | |||
59 | void | ||
60 | _xfs_itrace_exit(xfs_inode_t *ip, const char *func, inst_t *ra) | ||
61 | { | ||
62 | KTRACE_ENTER(ip, INODE_KTRACE_EXIT, func, 0, ra); | ||
63 | } | ||
64 | |||
65 | void | ||
66 | xfs_itrace_hold(xfs_inode_t *ip, char *file, int line, inst_t *ra) | ||
67 | { | ||
68 | KTRACE_ENTER(ip, INODE_KTRACE_HOLD, file, line, ra); | ||
69 | } | ||
70 | |||
71 | void | ||
72 | _xfs_itrace_ref(xfs_inode_t *ip, char *file, int line, inst_t *ra) | ||
73 | { | ||
74 | KTRACE_ENTER(ip, INODE_KTRACE_REF, file, line, ra); | ||
75 | } | ||
76 | |||
77 | void | ||
78 | xfs_itrace_rele(xfs_inode_t *ip, char *file, int line, inst_t *ra) | ||
79 | { | ||
80 | KTRACE_ENTER(ip, INODE_KTRACE_RELE, file, line, ra); | ||
81 | } | ||
82 | #endif /* XFS_INODE_TRACE */ | ||