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>
Sun, 30 Jan 2011 19:44:11 +0000 (20:44 +0100)
commit790a4654ae319d0ae7770fa93a5c5cef2acab624
tree96bc9e1bc3a306fbcecb0a8ab5dd29b6b7825b4c
parentce3c73dddddf04a5f1e03f3830198ecc55e56c75
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