diff options
author | Christoph Hellwig <hch@infradead.org> | 2007-08-30 03:21:46 -0400 |
---|---|---|
committer | Tim Shimmin <tes@chook.melbourne.sgi.com> | 2007-10-15 22:17:56 -0400 |
commit | 0adba5363ccbee073f127feb1d6942e64ee63ab3 (patch) | |
tree | 527ed5e21d637f07f02f37638d437f3b155fbf03 /fs/xfs/xfs_log_priv.h | |
parent | b267ce9952374c51099f21d6c3a59c78fa0d7586 (diff) |
[XFS] replace some large xfs_log_priv.h macros by proper functions
... or in the case of XLOG_TIC_ADD_OPHDR remove a useless macro entirely.
SGI-PV: 968563
SGI-Modid: xfs-linux-melb:xfs-kern:29511a
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/xfs_log_priv.h')
-rw-r--r-- | fs/xfs/xfs_log_priv.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/fs/xfs/xfs_log_priv.h b/fs/xfs/xfs_log_priv.h index db0d53ffe458..752f964b3699 100644 --- a/fs/xfs/xfs_log_priv.h +++ b/fs/xfs/xfs_log_priv.h | |||
@@ -249,22 +249,6 @@ typedef __uint32_t xlog_tid_t; | |||
249 | 249 | ||
250 | /* Ticket reservation region accounting */ | 250 | /* Ticket reservation region accounting */ |
251 | #define XLOG_TIC_LEN_MAX 15 | 251 | #define XLOG_TIC_LEN_MAX 15 |
252 | #define XLOG_TIC_RESET_RES(t) ((t)->t_res_num = \ | ||
253 | (t)->t_res_arr_sum = (t)->t_res_num_ophdrs = 0) | ||
254 | #define XLOG_TIC_ADD_OPHDR(t) ((t)->t_res_num_ophdrs++) | ||
255 | #define XLOG_TIC_ADD_REGION(t, len, type) \ | ||
256 | do { \ | ||
257 | if ((t)->t_res_num == XLOG_TIC_LEN_MAX) { \ | ||
258 | /* add to overflow and start again */ \ | ||
259 | (t)->t_res_o_flow += (t)->t_res_arr_sum; \ | ||
260 | (t)->t_res_num = 0; \ | ||
261 | (t)->t_res_arr_sum = 0; \ | ||
262 | } \ | ||
263 | (t)->t_res_arr[(t)->t_res_num].r_len = (len); \ | ||
264 | (t)->t_res_arr[(t)->t_res_num].r_type = (type); \ | ||
265 | (t)->t_res_arr_sum += (len); \ | ||
266 | (t)->t_res_num++; \ | ||
267 | } while (0) | ||
268 | 252 | ||
269 | /* | 253 | /* |
270 | * Reservation region | 254 | * Reservation region |