diff options
author | Jiri Slaby <jslaby@suse.cz> | 2012-10-18 16:26:47 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-22 19:58:28 -0400 |
commit | ecbbfd44a08fa80e0d664814efd4c187721b85f6 (patch) | |
tree | f1c9aea12eb27323b9e7f4b8329e47dc3c30e63d /drivers/tty/pty.c | |
parent | 967fab6916681e5ab131fdef1226327b02454f19 (diff) |
TTY: move tty buffers to tty_port
So this is it. The big step why we did all the work over the past
kernel releases. Now everything is prepared, so nothing protects us
from doing that big step.
| | \ \ nnnn/^l | |
| | \ / / | |
| '-,.__ => \/ ,-` => | '-,.__
| O __.´´) ( .` | O __.´´)
~~~ ~~ `` ~~~ ~~
The buffers are now in the tty_port structure and we can start
teaching the buffer helpers (insert char/string, flip etc.) to use
tty_port instead of tty_struct all around.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/pty.c')
-rw-r--r-- | drivers/tty/pty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/pty.c b/drivers/tty/pty.c index c32690862671..4219f040adb8 100644 --- a/drivers/tty/pty.c +++ b/drivers/tty/pty.c | |||
@@ -93,7 +93,7 @@ static void pty_unthrottle(struct tty_struct *tty) | |||
93 | 93 | ||
94 | static int pty_space(struct tty_struct *to) | 94 | static int pty_space(struct tty_struct *to) |
95 | { | 95 | { |
96 | int n = 8192 - to->buf.memory_used; | 96 | int n = 8192 - to->port->buf.memory_used; |
97 | if (n < 0) | 97 | if (n < 0) |
98 | return 0; | 98 | return 0; |
99 | return n; | 99 | return n; |