Re: [PATCH 2/3] user.c: use kmem_cache_zalloc()

2007-09-21 Thread Satyam Sharma
On Fri, 21 Sep 2007, Andrew Morton wrote: > > On Fri, 21 Sep 2007 13:39:06 +0400 > Alexey Dobriyan <[EMAIL PROTECTED]> wrote: > > > Quite a few fields are zeroed during user_struct creation, so use > > kmem_cache_zalloc() -- save a few lines and #ifdef. Also will help avoid > > #ifdef

Re: [PATCH 2/3] user.c: use kmem_cache_zalloc()

2007-09-21 Thread Andrew Morton
On Fri, 21 Sep 2007 13:39:06 +0400 Alexey Dobriyan <[EMAIL PROTECTED]> wrote: > Quite a few fields are zeroed during user_struct creation, so use > kmem_cache_zalloc() -- save a few lines and #ifdef. Also will help avoid > #ifdef CONFIG_POSIX_MQUEUE in next patch. > > Signed-off-by: Alexey

[PATCH 2/3] user.c: use kmem_cache_zalloc()

2007-09-21 Thread Alexey Dobriyan
Quite a few fields are zeroed during user_struct creation, so use kmem_cache_zalloc() -- save a few lines and #ifdef. Also will help avoid #ifdef CONFIG_POSIX_MQUEUE in next patch. Signed-off-by: Alexey Dobriyan <[EMAIL PROTECTED]> --- kernel/user.c | 13 + 1 file changed, 1

[PATCH 2/3] user.c: use kmem_cache_zalloc()

2007-09-21 Thread Alexey Dobriyan
Quite a few fields are zeroed during user_struct creation, so use kmem_cache_zalloc() -- save a few lines and #ifdef. Also will help avoid #ifdef CONFIG_POSIX_MQUEUE in next patch. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- kernel/user.c | 13 + 1 file changed, 1

Re: [PATCH 2/3] user.c: use kmem_cache_zalloc()

2007-09-21 Thread Andrew Morton
On Fri, 21 Sep 2007 13:39:06 +0400 Alexey Dobriyan [EMAIL PROTECTED] wrote: Quite a few fields are zeroed during user_struct creation, so use kmem_cache_zalloc() -- save a few lines and #ifdef. Also will help avoid #ifdef CONFIG_POSIX_MQUEUE in next patch. Signed-off-by: Alexey Dobriyan

Re: [PATCH 2/3] user.c: use kmem_cache_zalloc()

2007-09-21 Thread Satyam Sharma
On Fri, 21 Sep 2007, Andrew Morton wrote: On Fri, 21 Sep 2007 13:39:06 +0400 Alexey Dobriyan [EMAIL PROTECTED] wrote: Quite a few fields are zeroed during user_struct creation, so use kmem_cache_zalloc() -- save a few lines and #ifdef. Also will help avoid #ifdef