Transfer at most PAGE_SIZE

The do_transfer() function prevent failure in case of transfering larger data
buffer than maximum pipe size.