]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: return log item size in IOP_SIZE
authorDave Chinner <dchinner@redhat.com>
Mon, 12 Aug 2013 10:50:04 +0000 (20:50 +1000)
committerBen Myers <bpm@sgi.com>
Tue, 13 Aug 2013 21:10:21 +0000 (16:10 -0500)
commit2d46047a04fe1e3fd252f010d47f0bc0d45b4c2b
tree2f30092475185ee80d941e0be7689a0f5151be9f
parent18c29928e3bf16d3d1ad9cde678de81f75ca6cab
xfs: return log item size in IOP_SIZE

To begin optimising the CIL commit process, we need to have IOP_SIZE
return both the number of vectors and the size of the data pointed
to by the vectors. This enables us to calculate the size ofthe
memory allocation needed before the formatting step and reduces the
number of memory allocations per item by one.

While there, kill the IOP_SIZE macro.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_buf_item.c
fs/xfs/xfs_dquot_item.c
fs/xfs/xfs_extfree_item.c
fs/xfs/xfs_icreate_item.c
fs/xfs/xfs_inode_item.c
fs/xfs/xfs_log_cil.c
fs/xfs/xfs_trans.h