uipc_syscalls.c (ef11fbd7c42f873c6fee899cb63ab143d345ea4d) | uipc_syscalls.c (d3cb0d99e0eeb9340c5457127068eb039709cc8b) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1989, 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * sendfile(2) and related extensions: 6 * Copyright (c) 1998, David Greenman. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 1939 unchanged lines hidden (view full) --- 1948 goto done; 1949 } 1950 vm_page_unlock_queues(); 1951 1952 /* 1953 * Get a sendfile buf. We usually wait as long as necessary, 1954 * but this wait can be interrupted. 1955 */ | 1/* 2 * Copyright (c) 1982, 1986, 1989, 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * sendfile(2) and related extensions: 6 * Copyright (c) 1998, David Greenman. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 1939 unchanged lines hidden (view full) --- 1948 goto done; 1949 } 1950 vm_page_unlock_queues(); 1951 1952 /* 1953 * Get a sendfile buf. We usually wait as long as necessary, 1954 * but this wait can be interrupted. 1955 */ |
1956 if ((sf = sf_buf_alloc(pg, PCATCH)) == NULL) { | 1956 if ((sf = sf_buf_alloc(pg, SFB_CATCH)) == NULL) { |
1957 mbstat.sf_allocfail++; 1958 vm_page_lock_queues(); 1959 vm_page_unwire(pg, 0); 1960 if (pg->wire_count == 0 && pg->object == NULL) 1961 vm_page_free(pg); 1962 vm_page_unlock_queues(); 1963 SOCKBUF_LOCK(&so->so_snd); 1964 sbunlock(&so->so_snd); --- 157 unchanged lines hidden --- | 1957 mbstat.sf_allocfail++; 1958 vm_page_lock_queues(); 1959 vm_page_unwire(pg, 0); 1960 if (pg->wire_count == 0 && pg->object == NULL) 1961 vm_page_free(pg); 1962 vm_page_unlock_queues(); 1963 SOCKBUF_LOCK(&so->so_snd); 1964 sbunlock(&so->so_snd); --- 157 unchanged lines hidden --- |