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 Smirnoff glebius at FreeBSD.org
Tue Dec 23 12:23:32 UTC 2014


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.

-- 
Totus tuus, Glebius.


More information about the svn-src-projects mailing list