xfs: add a helper to figure out the space log reservation per item
authorJeff Liu <jeff.liu@oracle.com>
Mon, 28 Jan 2013 13:25:35 +0000 (21:25 +0800)
committerBen Myers <bpm@sgi.com>
Fri, 1 Feb 2013 20:35:06 +0000 (14:35 -0600)
Add a new helper xfs_calc_buf_res() to calcuate out the transaction space
reservations per item.  xfs_buf_log_overhead() is used to figure out the
extra space for struct xfs_buf_log_format that gets written into the log
for every buffer as well as a log opheader, i.e. struct xlog_op_header.

Signed-off-by: Jie Liu <jeff.liu@oracle.com>
CC: Dave Chinner <david@fromorbit.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>

No differences found