Searched refs:swap_header (Results 1 – 1 of 1) sorted by relevance
2211 union swap_header *swap_header, in read_swap_header() argument2219 if (memcmp("SWAPSPACE2", swap_header->magic.magic, 10)) { in read_swap_header()2225 if (swab32(swap_header->info.version) == 1) { in read_swap_header()2226 swab32s(&swap_header->info.version); in read_swap_header()2227 swab32s(&swap_header->info.last_page); in read_swap_header()2228 swab32s(&swap_header->info.nr_badpages); in read_swap_header()2229 if (swap_header->info.nr_badpages > MAX_SWAP_BADPAGES) in read_swap_header()2231 for (i = 0; i < swap_header->info.nr_badpages; i++) in read_swap_header()2232 swab32s(&swap_header->info.badpages[i]); in read_swap_header()2235 if (swap_header->info.version != 1) { in read_swap_header()[all …]