]> git.ipfire.org Git - thirdparty/coreutils.git/commit
copy: don't allocate a separate buffer just for extent-based copy
authorJim Meyering <meyering@redhat.com>
Sat, 22 Jan 2011 12:09:08 +0000 (13:09 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 22 Jan 2011 12:09:08 +0000 (13:09 +0100)
commitbdf7c351a37ed6eeaa6bce98cb82902073bcc6c3
treeb44604cb0e8d0e5c650dbd978986def36b9a771e
parentb3dfab326ad8d917ac1eaba10e0852bf695f93ae
copy: don't allocate a separate buffer just for extent-based copy

* src/copy.c (copy_reg): Move use of extent_scan to just *after*
we allocate the main copying buffer, so we can...
(extent_scan): Take a new parameter, BUF, and use that rather
than allocating a private buffer.  Update caller.
src/copy.c