Home
last modified time | relevance | path

Searched refs:maxpages (Results 1 – 1 of 1) sorted by relevance

/linux-2.4.37.9/mm/
Dswapfile.c882 unsigned long maxpages = 1; in sys_swapon() local
1005 maxpages = i+1; in sys_swapon()
1010 p->swap_map = vmalloc(maxpages * sizeof(short)); in sys_swapon()
1015 for (i = 1 ; i < maxpages ; i++) { in sys_swapon()
1035 maxpages = SWP_OFFSET(SWP_ENTRY(0,~0UL)) - 1; in sys_swapon()
1036 if (maxpages > swap_header->info.last_page) in sys_swapon()
1037 maxpages = swap_header->info.last_page; in sys_swapon()
1038 p->highest_bit = maxpages - 1; in sys_swapon()
1045 if (!(p->swap_map = vmalloc(maxpages * sizeof(short)))) { in sys_swapon()
1051 memset(p->swap_map, 0, maxpages * sizeof(short)); in sys_swapon()
[all …]