]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: Reduce allocations during CIL insertion
authorDave Chinner <dchinner@redhat.com>
Mon, 12 Aug 2013 10:50:05 +0000 (20:50 +1000)
committerBen Myers <bpm@sgi.com>
Tue, 13 Aug 2013 21:12:30 +0000 (16:12 -0500)
commitf5b4ade4de8e88fc8c5c8ed6159140e3b68be5df
tree95a073b09c3ec9105bb33d1ee0cbbe28f2f78f9c
parent2d46047a04fe1e3fd252f010d47f0bc0d45b4c2b
xfs: Reduce allocations during CIL insertion

Now that we have the size of the object before the formatting pass
is called, we can allocation the log vector and it's buffer in a
single allocation rather than two separate allocations.

Store the size of the allocated buffer in the log vector so that
we potentially avoid allocation for future modifications of the
object.

While touching this code, remove the IOP_FORMAT definition.

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_log.h
fs/xfs/xfs_log_cil.c
fs/xfs/xfs_trans.h