kern_exec.c (945f418ab8a676a9675bf5b845514cf63dbc652a) | kern_exec.c (eb00b276ab2a5a549620ec3fe92c22fd0ddf948e) |
---|---|
1/*- 2 * Copyright (c) 1993, David Greenman 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 934 unchanged lines hidden (view full) --- 943 if (ma[i] == NULL) 944 break; 945 } 946 } 947 initial_pagein = i; 948 rv = vm_pager_get_pages(object, ma, initial_pagein, 0); 949 ma[0] = vm_page_lookup(object, 0); 950 if ((rv != VM_PAGER_OK) || (ma[0] == NULL)) { | 1/*- 2 * Copyright (c) 1993, David Greenman 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 934 unchanged lines hidden (view full) --- 943 if (ma[i] == NULL) 944 break; 945 } 946 } 947 initial_pagein = i; 948 rv = vm_pager_get_pages(object, ma, initial_pagein, 0); 949 ma[0] = vm_page_lookup(object, 0); 950 if ((rv != VM_PAGER_OK) || (ma[0] == NULL)) { |
951 if (ma[0]) { | 951 if (ma[0] != NULL) { |
952 vm_page_lock(ma[0]); | 952 vm_page_lock(ma[0]); |
953 vm_page_lock_queues(); | |
954 vm_page_free(ma[0]); | 953 vm_page_free(ma[0]); |
955 vm_page_unlock_queues(); | |
956 vm_page_unlock(ma[0]); 957 } 958 VM_OBJECT_UNLOCK(object); 959 return (EIO); 960 } 961 } 962 vm_page_lock(ma[0]); 963 vm_page_hold(ma[0]); --- 465 unchanged lines hidden --- | 954 vm_page_unlock(ma[0]); 955 } 956 VM_OBJECT_UNLOCK(object); 957 return (EIO); 958 } 959 } 960 vm_page_lock(ma[0]); 961 vm_page_hold(ma[0]); --- 465 unchanged lines hidden --- |