Searched refs:swap_header (Results 1 – 3 of 3) sorted by relevance
2957 union swap_header *swap_header, in read_swap_header() argument2965 if (memcmp("SWAPSPACE2", swap_header->magic.magic, 10)) { in read_swap_header()2971 if (swab32(swap_header->info.version) == 1) { in read_swap_header()2972 swab32s(&swap_header->info.version); in read_swap_header()2973 swab32s(&swap_header->info.last_page); in read_swap_header()2974 swab32s(&swap_header->info.nr_badpages); in read_swap_header()2975 if (swap_header->info.nr_badpages > MAX_SWAP_BADPAGES) in read_swap_header()2977 for (i = 0; i < swap_header->info.nr_badpages; i++) in read_swap_header()2978 swab32s(&swap_header->info.badpages[i]); in read_swap_header()2981 if (swap_header->info.version != 1) { in read_swap_header()[all …]
117 union swap_header { union168 ((offsetof(union swap_header, magic.magic) - \169 offsetof(union swap_header, info.badpages)) / sizeof(int))
1064 union swap_header *hd = (union swap_header *)(buf); in mtdswap_auto_header()