vfs_bio.c (8e68f804a728c9d11014648e1a992a6ad829ba49) | vfs_bio.c (222d01951f8677015e3e96c6950e809c0d983c09) |
---|---|
1/*- 2 * Copyright (c) 2004 Poul-Henning Kamp 3 * Copyright (c) 1994,1997 John S. Dyson 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 2905 unchanged lines hidden (view full) --- 2914 continue; 2915 2916 /* 2917 * We have a good page. Should we wakeup the 2918 * page daemon? 2919 */ 2920 if ((curproc != pageproc) && 2921 (VM_PAGE_INQUEUE1(m, PQ_CACHE)) && | 1/*- 2 * Copyright (c) 2004 Poul-Henning Kamp 3 * Copyright (c) 1994,1997 John S. Dyson 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 2905 unchanged lines hidden (view full) --- 2914 continue; 2915 2916 /* 2917 * We have a good page. Should we wakeup the 2918 * page daemon? 2919 */ 2920 if ((curproc != pageproc) && 2921 (VM_PAGE_INQUEUE1(m, PQ_CACHE)) && |
2922 ((cnt.v_free_count + cnt.v_cache_count) < 2923 (cnt.v_free_min + cnt.v_cache_min))) { | 2922 ((VMCNT_GET(free_count) + 2923 VMCNT_GET(cache_count)) < 2924 (VMCNT_GET(free_min) + 2925 VMCNT_GET(cache_min)))) { |
2924 pagedaemon_wakeup(); 2925 } 2926 vm_page_wire(m); 2927 vm_page_unlock_queues(); 2928 bp->b_pages[bp->b_npages] = m; 2929 ++bp->b_npages; 2930 } 2931 --- 1023 unchanged lines hidden --- | 2926 pagedaemon_wakeup(); 2927 } 2928 vm_page_wire(m); 2929 vm_page_unlock_queues(); 2930 bp->b_pages[bp->b_npages] = m; 2931 ++bp->b_npages; 2932 } 2933 --- 1023 unchanged lines hidden --- |