aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_trans.h
diff options
context:
space:
mode:
authorJie Liu <jeff.liu@oracle.com>2013-08-12 06:49:59 -0400
committerBen Myers <bpm@sgi.com>2013-08-12 18:47:34 -0400
commit3d3c8b5222b92447bffaa4127ee18c757f32a460 (patch)
tree250f3b61679231944b5272d18d17e6ceabfc62d1 /fs/xfs/xfs_trans.h
parent783cb6d172358892d6af394ebe2876bcbfcc6499 (diff)
xfs: refactor xfs_trans_reserve() interface
With the new xfs_trans_res structure has been introduced, the log reservation size, log count as well as log flags are pre-initialized at mount time. So it's time to refine xfs_trans_reserve() interface to be more neat. Also, introduce a new helper M_RES() to return a pointer to the mp->m_resv structure to simplify the input. Signed-off-by: Jie Liu <jeff.liu@oracle.com> Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Mark Tinguely <tinguely@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_trans.h')
-rw-r--r--fs/xfs/xfs_trans.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/xfs_trans.h b/fs/xfs/xfs_trans.h
index b5dc61e3e56b..7eb81ccd826d 100644
--- a/fs/xfs/xfs_trans.h
+++ b/fs/xfs/xfs_trans.h
@@ -34,6 +34,7 @@ struct xfs_log_iovec;
34struct xfs_log_item_desc; 34struct xfs_log_item_desc;
35struct xfs_mount; 35struct xfs_mount;
36struct xfs_trans; 36struct xfs_trans;
37struct xfs_trans_res;
37struct xfs_dquot_acct; 38struct xfs_dquot_acct;
38struct xfs_busy_extent; 39struct xfs_busy_extent;
39 40
@@ -170,7 +171,7 @@ typedef struct xfs_trans {
170xfs_trans_t *xfs_trans_alloc(struct xfs_mount *, uint); 171xfs_trans_t *xfs_trans_alloc(struct xfs_mount *, uint);
171xfs_trans_t *_xfs_trans_alloc(struct xfs_mount *, uint, xfs_km_flags_t); 172xfs_trans_t *_xfs_trans_alloc(struct xfs_mount *, uint, xfs_km_flags_t);
172xfs_trans_t *xfs_trans_dup(xfs_trans_t *); 173xfs_trans_t *xfs_trans_dup(xfs_trans_t *);
173int xfs_trans_reserve(xfs_trans_t *, uint, uint, uint, 174int xfs_trans_reserve(struct xfs_trans *, struct xfs_trans_res *,
174 uint, uint); 175 uint, uint);
175void xfs_trans_mod_sb(xfs_trans_t *, uint, int64_t); 176void xfs_trans_mod_sb(xfs_trans_t *, uint, int64_t);
176 177