vm_machdep.c (a4bf5fb987611aeb78c422312b63b185e39982d7) vm_machdep.c (55aabb7fd1e29a71b2f17479476dd290551b15dd)
1/*-
2 * Copyright (c) 1982, 1986 The Regents of the University of California.
3 * Copyright (c) 1989, 1990 William Jolitz
4 * Copyright (c) 1994 John Dyson
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * the Systems Programming Group of the University of Utah Computer

--- 161 unchanged lines hidden (view full) ---

170 sf->ref_count--;
171 if (sf->ref_count == 0) {
172 TAILQ_INSERT_TAIL(&sf_buf_freelist, sf, free_entry);
173 nsfbufsused--;
174 pmap_kremove(sf->kva);
175 sf->m = NULL;
176 LIST_REMOVE(sf, list_entry);
177 if (sf_buf_alloc_want > 0)
1/*-
2 * Copyright (c) 1982, 1986 The Regents of the University of California.
3 * Copyright (c) 1989, 1990 William Jolitz
4 * Copyright (c) 1994 John Dyson
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * the Systems Programming Group of the University of Utah Computer

--- 161 unchanged lines hidden (view full) ---

170 sf->ref_count--;
171 if (sf->ref_count == 0) {
172 TAILQ_INSERT_TAIL(&sf_buf_freelist, sf, free_entry);
173 nsfbufsused--;
174 pmap_kremove(sf->kva);
175 sf->m = NULL;
176 LIST_REMOVE(sf, list_entry);
177 if (sf_buf_alloc_want > 0)
178 wakeup_one(&sf_buf_freelist);
178 wakeup(&sf_buf_freelist);
179 }
180 mtx_unlock(&sf_buf_lock);
181#endif
182}
183
184#ifndef ARM_USE_SMALL_ALLOC
185/*
186 * Allocate a pool of sf_bufs (sendfile(2) or "super-fast" if you prefer. :-))

--- 528 unchanged lines hidden ---
179 }
180 mtx_unlock(&sf_buf_lock);
181#endif
182}
183
184#ifndef ARM_USE_SMALL_ALLOC
185/*
186 * Allocate a pool of sf_bufs (sendfile(2) or "super-fast" if you prefer. :-))

--- 528 unchanged lines hidden ---