Correct a typo in the previous revision.
This commit is contained in:
parent
f7ebc7ceb7
commit
12ef9d214b
@ -383,7 +383,7 @@ sf_buf_alloc(struct vm_page *m, int flags)
|
|||||||
mtx_lock(&sf_freelist.sf_lock);
|
mtx_lock(&sf_freelist.sf_lock);
|
||||||
while ((sf = SLIST_FIRST(&sf_freelist.sf_head)) == NULL) {
|
while ((sf = SLIST_FIRST(&sf_freelist.sf_head)) == NULL) {
|
||||||
if (flags & SFB_NOWAIT)
|
if (flags & SFB_NOWAIT)
|
||||||
goto break;
|
break;
|
||||||
sf_buf_alloc_want++;
|
sf_buf_alloc_want++;
|
||||||
mbstat.sf_allocwait++;
|
mbstat.sf_allocwait++;
|
||||||
error = msleep(&sf_freelist, &sf_freelist.sf_lock,
|
error = msleep(&sf_freelist, &sf_freelist.sf_lock,
|
||||||
|
Loading…
Reference in New Issue
Block a user