tty: Keep the default buffering to sub-page units
commitd560f99c9aafb9ebe1911541cf30d909819564eb
authorAlan Cox <alan@linux.intel.com>
Thu, 18 Feb 2010 16:43:47 +0000 (18 16:43 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 1 Apr 2010 22:58:30 +0000 (1 15:58 -0700)
tree4a8a3b57137d5866c6c9b6b344f1c762b1bbbcd4
parent0b4d9d6ac1f1d22fb0342305cd1e9bf67307d194
tty: Keep the default buffering to sub-page units

commit d9661adfb8e53a7647360140af3b92284cbe52d4 upstream.

We allocate during interrupts so while our buffering is normally diced up
small anyway on some hardware at speed we can pressure the VM excessively
for page pairs. We don't really need big buffers to be linear so don't try
so hard.

In order to make this work well we will tidy up excess callers to request_room,
which cannot itself enforce this break up.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/tty_buffer.c
include/linux/tty.h