diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-03-29 14:36:49 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-03-29 14:36:49 -0500 |
commit | d0dc80dbafb5c10ad2084831a61bbf945484a139 (patch) | |
tree | f7434367a66e4e4be0885daefe5e59ab43502a7f /fs/gfs2/trans.h | |
parent | 484adff8a06cb5d952832f5487ae863f54c0fb69 (diff) |
[GFS2] Update debugging code
Update the debugging code in trans.c and at the same time improve
the debugging code for gfs2_holders. The new code should be pretty
fast during the normal case and provide just as much information
in case of errors (or more).
One small function from glock.c has moved to glock.h as a static inline so
that its return address won't get in the way of the debugging.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/trans.h')
-rw-r--r-- | fs/gfs2/trans.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/gfs2/trans.h b/fs/gfs2/trans.h index f7f3e2a3d590..6b5e9e8bf561 100644 --- a/fs/gfs2/trans.h +++ b/fs/gfs2/trans.h | |||
@@ -21,12 +21,8 @@ | |||
21 | #define RES_STATFS 1 | 21 | #define RES_STATFS 1 |
22 | #define RES_QUOTA 2 | 22 | #define RES_QUOTA 2 |
23 | 23 | ||
24 | #define gfs2_trans_begin(sdp, blocks, revokes) \ | 24 | int gfs2_trans_begin(struct gfs2_sbd *sdp, |
25 | gfs2_trans_begin_i((sdp), (blocks), (revokes), __FILE__, __LINE__) | 25 | unsigned int blocks, unsigned int revokes); |
26 | |||
27 | int gfs2_trans_begin_i(struct gfs2_sbd *sdp, | ||
28 | unsigned int blocks, unsigned int revokes, | ||
29 | char *file, unsigned int line); | ||
30 | 26 | ||
31 | void gfs2_trans_end(struct gfs2_sbd *sdp); | 27 | void gfs2_trans_end(struct gfs2_sbd *sdp); |
32 | 28 | ||