From: Jeff Liu Date: Mon, 28 Jan 2013 13:25:35 +0000 (+0800) Subject: xfs: add a helper to figure out the space log reservation per item X-Git-Tag: v3.9-rc1~134^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f3b57832ba39223c6f8823d07b9fb206e282ced;p=pandora-kernel.git xfs: add a helper to figure out the space log reservation per item 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 CC: Dave Chinner Reviewed-by: Mark Tinguely Signed-off-by: Ben Myers --- Reading git-diff-tree failed