]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
tty: Halve flip buffer GFP_ATOMIC memory consumption
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 9 Dec 2013 14:23:52 +0000 (09:23 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Dec 2013 19:09:24 +0000 (11:09 -0800)
commitacc0f67f307f52f7aec1cffdc40a786c15dd21d9
tree30fe7356b60d42814b63c3de8ab00ac2bf9ed05d
parent9bbc3dca9d2212f900396ab9642c48279657a8c0
tty: Halve flip buffer GFP_ATOMIC memory consumption

tty flip buffers use GFP_ATOMIC allocations for received data
which is to be processed by the line discipline. For each byte
received, an extra byte is used to indicate the error status of
that byte.

Instead, if the received data is error-free, encode the entire
buffer without status bytes.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_buffer.c
include/linux/tty.h
include/linux/tty_flip.h