tag | line | file | source code |
swap_nr | 95 | mm/swap.c | void swap_free(unsigned int swap_nr) |
swap_nr | 97 | mm/swap.c | if (!swap_nr) |
swap_nr | 99 | mm/swap.c | if (swap_bitmap && swap_nr < SWAP_BITS) { |
swap_nr | 100 | mm/swap.c | if (swap_nr < lowest_bit) |
swap_nr | 101 | mm/swap.c | lowest_bit = swap_nr; |
swap_nr | 102 | mm/swap.c | if (swap_nr > highest_bit) |
swap_nr | 103 | mm/swap.c | highest_bit = swap_nr; |
swap_nr | 104 | mm/swap.c | if (!setbit(swap_bitmap,swap_nr)) |
swap_nr | 107 | mm/swap.c | printk("swap_free: swap-space bitmap bad (bit %d)\n",swap_nr); |
swap_nr | 113 | mm/swap.c | unsigned long swap_nr; |
swap_nr | 116 | mm/swap.c | swap_nr = *table_ptr; |
swap_nr | 117 | mm/swap.c | if (1 & swap_nr) { |
swap_nr | 121 | mm/swap.c | if (!swap_nr) { |
swap_nr | 135 | mm/swap.c | read_swap_page(swap_nr>>1, (char *) page); |
swap_nr | 136 | mm/swap.c | if (*table_ptr != swap_nr) { |
swap_nr | 140 | mm/swap.c | swap_free(swap_nr>>1); |
swap_nr | 148 | mm/swap.c | unsigned long swap_nr; |
swap_nr | 162 | mm/swap.c | if (!(swap_nr = get_swap_page())) |
swap_nr | 164 | mm/swap.c | *table_ptr = swap_nr<<1; |
swap_nr | 166 | mm/swap.c | write_swap_page(swap_nr, (char *) page); |