diff options
author | Jeff Liu <jeff.liu@oracle.com> | 2013-01-28 21:25:35 +0800 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2013-02-01 14:35:06 -0600 |
commit | 4f3b57832ba39223c6f8823d07b9fb206e282ced (patch) | |
tree | 071d5d58fee6d361e4197804c37f8ffced556812 /lib/show_mem.c | |
parent | 2729423cf2ef3ac51d040f24a5ddd84c1b2acc70 (diff) | |
download | kernel_goldelico_gta04-4f3b57832ba39223c6f8823d07b9fb206e282ced.zip kernel_goldelico_gta04-4f3b57832ba39223c6f8823d07b9fb206e282ced.tar.gz kernel_goldelico_gta04-4f3b57832ba39223c6f8823d07b9fb206e282ced.tar.bz2 |
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 <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>
Diffstat (limited to 'lib/show_mem.c')
0 files changed, 0 insertions, 0 deletions