aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorMel Gorman <[email protected]>2010-03-02 22:24:19 +0000
committerGreg Kroah-Hartman <[email protected]>2010-03-19 14:17:53 +0000
commit352fa6ad16b89f8ffd1a93b4419b1a8f2259feab (patch)
treeb08df3f006762cc213543f2ccd1095f2d9afab52 /lib/debugobjects.c
parentRevert "tty: Add a new VT mode which is like VT_PROCESS but doesn't require a... (diff)
downloadkernel-352fa6ad16b89f8ffd1a93b4419b1a8f2259feab.tar.gz
kernel-352fa6ad16b89f8ffd1a93b4419b1a8f2259feab.zip
tty: Take a 256 byte padding into account when buffering below sub-page units
The TTY layer takes some care to ensure that only sub-page allocations are made with interrupts disabled. It does this by setting a goal of "TTY_BUFFER_PAGE" to allocate. Unfortunately, while TTY_BUFFER_PAGE takes the size of tty_buffer into account, it fails to account that tty_buffer_find() rounds the buffer size out to the next 256 byte boundary before adding on the size of the tty_buffer. This patch adjusts the TTY_BUFFER_PAGE calculation to take into account the size of the tty_buffer and the padding. Once applied, tty_buffer_alloc() should not require high-order allocations. Signed-off-by: Mel Gorman <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions