]> 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>
Fri, 28 Jan 2011 22:28:38 +0000 (23:28 +0100)
commit700bcaf54e24b937dd094443081d49507164af6d
treeb3fa32aea7d7872c104cc157eaec51ce26ba4b84
parent395011ce8fb668b3eb0a2b63fdafc6cbd4aa3720
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