Messages in this thread | | | Date | Sun, 31 May 2009 18:10:20 +0100 | From | Alan Cox <> | Subject | Re: [PATCH] Use kzfree in tty buffer management to enforce data sanitization |
| |
> I think Pekka meant the other way around - why don't we always just use > kmalloc(N_TTY_BUF_SIZE)/kfree(), and drop the whole conditional "use page > allocator" entirely?
We certainly can nowdays - the old allocator used to allocate 8K for 4K and a bit of memory and its many years single we acquired slab so yes it can go.
> If I'm right, then we could just use kmalloc/kfree unconditionally. Pekka?
Added to the tty queue will do that tomorrow
| |