Date: Tue, 16 Mar 2004 11:04:28 -0800 (PST) From: Alan Cox <alc@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/alpha/alpha vm_machdep.c src/sys/amd64/amd64 vm_machdep.c src/sys/i386/i386 vm_machdep.c src/sys/ia64/ia64 vm_machdep.c src/sys/kern uipc_cow.c uipc_syscalls.c src/sys/powerpc/powerpc vm_machdep.c src/sys/sparc64/sparc64 ... Message-ID: <200403161904.i2GJ4SV4014374@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
alc 2004/03/16 11:04:28 PST FreeBSD src repository Modified files: sys/alpha/alpha vm_machdep.c sys/amd64/amd64 vm_machdep.c sys/i386/i386 vm_machdep.c sys/ia64/ia64 vm_machdep.c sys/kern uipc_cow.c uipc_syscalls.c sys/powerpc/powerpc vm_machdep.c sys/sparc64/sparc64 vm_machdep.c sys/sys sf_buf.h Log: Refactor the existing machine-dependent sf_buf_free() into a machine- dependent function by the same name and a machine-independent function, sf_buf_mext(). Aside from the virtue of making more of the code machine- independent, this change also makes the interface more logical. Before, sf_buf_free() did more than simply undo an sf_buf_alloc(); it also unwired and if necessary freed the page. That is now the purpose of sf_buf_mext(). Thus, sf_buf_alloc() and sf_buf_free() can now be used as a general-purpose emphemeral map cache. Revision Changes Path 1.100 +2 -17 src/sys/alpha/alpha/vm_machdep.c 1.229 +2 -17 src/sys/amd64/amd64/vm_machdep.c 1.232 +6 -18 src/sys/i386/i386/vm_machdep.c 1.80 +2 -17 src/sys/ia64/ia64/vm_machdep.c 1.18 +1 -1 src/sys/kern/uipc_cow.c 1.175 +24 -2 src/sys/kern/uipc_syscalls.c 1.98 +3 -18 src/sys/powerpc/powerpc/vm_machdep.c 1.59 +3 -18 src/sys/sparc64/sparc64/vm_machdep.c 1.3 +2 -1 src/sys/sys/sf_buf.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403161904.i2GJ4SV4014374>