[RFC][PATCH 1/3] Setup the kmem container

Pavel Emelyanov xemul at openvz.org
Tue Sep 4 02:24:36 PDT 2007


Paul Menage wrote:
> On 8/30/07, Pavel Emelyanov <xemul at openvz.org> wrote:
>> +config CONTAINER_KMEM
>> +       bool "Kernel memory controller for containers"
>> +       depends on CONTAINERS && RESOURCE_COUNTERS && SLUB
>> +       help
>> +         Provedes a kernel memory usage controll for containers
> 
> s/Provedes/Provides/
> s/controll/control/

:) Thanks

>> +
>> +       if (mem == NULL)
>> +               return NULL;
> 
> That ought to be
> 
>      return -ENOMEM;

Are you sure? This function should return the pointer! Maybe its
ought to be ERR_PTR(-ENOMEM)?

> 
> Paul
> 



More information about the Containers mailing list