uipc_syscalls.c (627e4a99732a9b6daea3a1740cda74ecff75fc18) | uipc_syscalls.c (121230a40d493c631338118c4ba7b694746313ca) |
---|---|
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 --- 1905 unchanged lines hidden (view full) --- 1914 goto done; 1915 } 1916 vm_page_unlock_queues(); 1917 1918 /* 1919 * Get a sendfile buf. We usually wait as long as necessary, 1920 * but this wait can be interrupted. 1921 */ | 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 --- 1905 unchanged lines hidden (view full) --- 1914 goto done; 1915 } 1916 vm_page_unlock_queues(); 1917 1918 /* 1919 * Get a sendfile buf. We usually wait as long as necessary, 1920 * but this wait can be interrupted. 1921 */ |
1922 if ((sf = sf_buf_alloc(pg)) == NULL) { | 1922 if ((sf = sf_buf_alloc(pg, PCATCH)) == NULL) { |
1923 mbstat.sf_allocfail++; 1924 vm_page_lock_queues(); 1925 vm_page_unwire(pg, 0); 1926 if (pg->wire_count == 0 && pg->object == NULL) 1927 vm_page_free(pg); 1928 vm_page_unlock_queues(); 1929 sbunlock(&so->so_snd); 1930 error = EINTR; --- 148 unchanged lines hidden --- | 1923 mbstat.sf_allocfail++; 1924 vm_page_lock_queues(); 1925 vm_page_unwire(pg, 0); 1926 if (pg->wire_count == 0 && pg->object == NULL) 1927 vm_page_free(pg); 1928 vm_page_unlock_queues(); 1929 sbunlock(&so->so_snd); 1930 error = EINTR; --- 148 unchanged lines hidden --- |