virtio_console: Merge struct buffer_token into struct port_buffer
authorSjur Brændeland <sjur.brandeland@stericsson.com>
Fri, 14 Dec 2012 03:16:42 +0000 (13:46 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 18 Dec 2012 04:50:44 +0000 (15:20 +1030)
commit276a3e954cfe4da7c492c9063741f99290d2973e
treeb2f697bcb414219a157f837c7183fedfd0eb7daa
parent9a2bdcc85d28506d4e5d4a9618fb133a3f40945d
virtio_console: Merge struct buffer_token into struct port_buffer

Refactoring the splice functionality by unifying the approach for
sending scatter-lists and regular buffers. This simplifies
buffer handling and reduces code size. Splice will now allocate
a port_buffer and send_buf() and free_buf() can always be used
for any buffer.

Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Acked-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/virtio_console.c