diff options
author | Alan Cox <alc@FreeBSD.org> | 2004-03-16 19:04:28 +0000 |
---|---|---|
committer | Alan Cox <alc@FreeBSD.org> | 2004-03-16 19:04:28 +0000 |
commit | 90ecfebd8287b0c59fe80050d3026f7e94db5a3b (patch) | |
tree | 23b7ae48f580ace96e1510d279da96896036cc35 /sys/kern/uipc_cow.c | |
parent | 27de234992dc74bdb8edec2114124454fc5ddc4c (diff) | |
download | src-90ecfebd8287b0c59fe80050d3026f7e94db5a3b.tar.gz src-90ecfebd8287b0c59fe80050d3026f7e94db5a3b.zip |
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.
Notes
Notes:
svn path=/head/; revision=127086
Diffstat (limited to 'sys/kern/uipc_cow.c')
-rw-r--r-- | sys/kern/uipc_cow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/uipc_cow.c b/sys/kern/uipc_cow.c index ca6b2d88c6a4..8c00ffe1df97 100644 --- a/sys/kern/uipc_cow.c +++ b/sys/kern/uipc_cow.c @@ -85,7 +85,7 @@ socow_iodone(void *addr, void *args) vm_page_unlock_queues(); splx(s); /* note that sf_buf_free() unwires the page for us*/ - sf_buf_free(addr, args); + sf_buf_mext(addr, args); socow_stats.iodone++; } |