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

2014-01-08 Thread Greg KH
On Wed, Jan 08, 2014 at 07:13:10AM +0800, 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:

[PATCH v4]vt: use vc_allocate in con_init

2014-01-07 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 in