Lines Matching defs:free
227 * @addr: Address of the page to free.
230 * The page to free should have been allocated by get_image_page() (page flags
265 * It is only possible to free them all at once, by freeing the entire
573 * @list: List of extents to free.
992 /* Set bits in this map correspond to free page frames. */
1078 * free page frames. The forbidden_pages_map and free_pages_map pointers are
1186 pr_info("free pages cleared after restore\n");
1214 * count_free_highmem_pages - Compute the total number of free highmem pages.
1234 * and it isn't part of a free chunk of pages.
1307 * a free chunk of pages.
1641 unsigned long save, to_free_normal, to_free_highmem, free;
1663 free = to_free_normal + to_free_highmem;
1690 return free;
1697 * We want to avoid attempting to free too much memory too hard, so estimate the
1723 * frame in use. We also need a number of page frames to be free during
1828 * large number of page frames to allocate and make it free some memory.
1924 * enough_free_mem - Check if there is enough free memory for the image.
1929 unsigned int free = alloc_normal;
1931 for_each_populated_zone(zone) if (!is_highmem(zone)) free += zone_page_state(zone, NR_FREE_PAGES);
1934 pr_debug("Normal pages needed: %u + %u, available pages: %u\n", nr_pages, PAGES_FOR_IO, free);
1936 return free > nr_pages + PAGES_FOR_IO;
1955 * Try to allocate as many pages as needed, but if the number of free highmem
2040 pr_err("Not enough free memory\n");
2224 /* Clear the "free"/"unsafe" bit for all PFNs */