svn commit: r276108 - in projects/ino64/sys: compat/freebsd32 compat/linux compat/svr4 fs/nfs fs/nfsserver fs/nullfs fs/unionfs i386/ibcs2 kern nfsserver sys

Gleb Kurtsou gleb at FreeBSD.org
Tue Dec 23 17:28:34 UTC 2014


On (23/12/2014 15:23), Gleb Smirnoff wrote:
> On Tue, Dec 23, 2014 at 08:09:49AM +0000, Gleb Kurtsou wrote:
> G> Author: gleb
> G> Date: Tue Dec 23 08:09:48 2014
> G> New Revision: 276108
> G> URL: https://svnweb.freebsd.org/changeset/base/276108
> G> 
> G> Log:
> G>   Avoid placing struct statfs on stack in kernel.
> G>   
> G>   MNAMELEN is about to be increased thus makeing the struct too large
> G>   for the kernel stack.
> G>   
> G>   Use M_STATFS malloc type for struct statfs.
> 
> Usually M_TEMP is used for allocations that exist only during
> a function execution.

M_TEMP was used initially, kib or mckusick suggested to use separate
malloc type.



More information about the svn-src-projects mailing list