commit | e773fc934fcbe2536dc625c2bd76234b9b9a60b6 | [log] [tgz] |
---|---|---|
author | Jie Liu <jeff.liu@oracle.com> | Mon Aug 12 20:50:01 2013 +1000 |
committer | Ben Myers <bpm@sgi.com> | Mon Aug 12 17:49:02 2013 -0500 |
tree | 25faa59058c2c6168bc3b61392c0a356b8c3b798 | |
parent | f749278c5a45e8a80f3e3ca41d4634b84948b9d9 [diff] |
xfs: Refactor xfs_ticket_alloc() to extract a new helper Refactor xlog_ticket_alloc() to extract a new helper, i.e. xfs_log_calc_unit_res(). This helper would be used to calculate the total log reservation size by adding extra log operation/transation headers for a new log ticket. 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>