xfs: xfs_iomap_prealloc_size() tracepoint

Add a tracepoint to provide some feedback on preallocation size
calculation.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
This commit is contained in:
Brian Foster
2013-03-18 10:51:48 -04:00
committed by Ben Myers
parent 76a4202a38
commit 19cb7e3854
2 changed files with 27 additions and 0 deletions

View File

@@ -518,6 +518,9 @@ check_writeio:
if (alloc_blocks < mp->m_writeio_blocks)
alloc_blocks = mp->m_writeio_blocks;
trace_xfs_iomap_prealloc_size(ip, alloc_blocks, shift,
mp->m_writeio_blocks);
return alloc_blocks;
}