Re: [PATCH v3]vt: use vc_allocate in con_init

2014-01-06 Thread Jiri Slaby
On 01/02/2014 08:48 AM, Wang YanQing wrote: > After a5f4f52e82114e85aa1a066bd1a450acc19a464d > ("vt: use kzalloc() instead of the bootmem allocator"), > con_init began to use kzalloc to initialize vc_data, > this patch convert con_init to use vc_allocate. > > The benefit we get: > 1: reduce code

[PATCH v3]vt: use vc_allocate in con_init

2014-01-01 Thread Wang YanQing
After a5f4f52e82114e85aa1a066bd1a450acc19a464d ("vt: use kzalloc() instead of the bootmem allocator"), con_init began to use kzalloc to initialize vc_data, this patch convert con_init to use vc_allocate. The benefit we get: 1: reduce code duplication 2: vc_allocate is more robust 3: use kmalloc i