Searched refs:swap_header (Results 1 – 2 of 2) sorted by relevance
3471 union swap_header *swap_header, in read_swap_header() argument3479 if (memcmp("SWAPSPACE2", swap_header->magic.magic, 10)) { in read_swap_header()3485 if (swab32(swap_header->info.version) == 1) { in read_swap_header()3486 swab32s(&swap_header->info.version); in read_swap_header()3487 swab32s(&swap_header->info.last_page); in read_swap_header()3488 swab32s(&swap_header->info.nr_badpages); in read_swap_header()3489 if (swap_header->info.nr_badpages > MAX_SWAP_BADPAGES) in read_swap_header()3491 for (i = 0; i < swap_header->info.nr_badpages; i++) in read_swap_header()3492 swab32s(&swap_header->info.badpages[i]); in read_swap_header()3495 if (swap_header->info.version != 1) { in read_swap_header()[all …]
125 union swap_header { union194 ((offsetof(union swap_header, magic.magic) - \195 offsetof(union swap_header, info.badpages)) / sizeof(int))