Searched refs:freepages (Results 1 – 2 of 2) sorted by relevance
144 int freepages, retval = -ENOMEM; in sunos_brk() local195 freepages = atomic_read(&buffermem_pages) >> PAGE_SHIFT; in sunos_brk()196 freepages += page_cache_size; in sunos_brk()197 freepages >>= 1; in sunos_brk()198 freepages += nr_free_pages(); in sunos_brk()199 freepages += nr_swap_pages; in sunos_brk()200 freepages -= num_physpages >> 4; in sunos_brk()201 freepages -= (newbrk-oldbrk) >> PAGE_SHIFT; in sunos_brk()202 if (freepages < 0) in sunos_brk()
125 int freepages, retval = -ENOMEM; in sunos_brk() local159 freepages = atomic_read(&buffermem_pages) >> PAGE_SHIFT; in sunos_brk()160 freepages += page_cache_size; in sunos_brk()161 freepages >>= 1; in sunos_brk()162 freepages += nr_free_pages(); in sunos_brk()163 freepages += nr_swap_pages; in sunos_brk()164 freepages -= num_physpages >> 4; in sunos_brk()165 freepages -= (newbrk-oldbrk) >> PAGE_SHIFT; in sunos_brk()166 if (freepages < 0) in sunos_brk()