Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/fs/tmpfs



On Jan 8, 2014, at 5:11 PM, pedro martelletto <pedro%netbsd.org@localhost> 
wrote:

> Module Name:  src
> Committed By: pedro
> Date:         Wed Jan  8 16:11:04 UTC 2014
> 
> Modified Files:
>       src/sys/fs/tmpfs: tmpfs_subr.c
> 
> Log Message:
> Allocate direntp on the stack in tmpfs_dir_getdents(), thus saving
> calls to kmem_zalloc() and kmem_free(); OK rmind@. From OpenBSD.


Is it really a good idea to allocate 528 bytes on the kernel stack?
File systems nest and already use much stack space.
Looks better to use a pool_cache.

--
J. Hannken-Illjes - hannken%eis.cs.tu-bs.de@localhost - TU Braunschweig 
(Germany)



Home | Main Index | Thread Index | Old Index