Home
last modified time | relevance | path

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

/mm/
Dswapfile.c2965 union swap_header *swap_header, in read_swap_header() argument
2973 if (memcmp("SWAPSPACE2", swap_header->magic.magic, 10)) { in read_swap_header()
2979 if (swab32(swap_header->info.version) == 1) { in read_swap_header()
2980 swab32s(&swap_header->info.version); in read_swap_header()
2981 swab32s(&swap_header->info.last_page); in read_swap_header()
2982 swab32s(&swap_header->info.nr_badpages); in read_swap_header()
2983 if (swap_header->info.nr_badpages > MAX_SWAP_BADPAGES) in read_swap_header()
2985 for (i = 0; i < swap_header->info.nr_badpages; i++) in read_swap_header()
2986 swab32s(&swap_header->info.badpages[i]); in read_swap_header()
2989 if (swap_header->info.version != 1) { in read_swap_header()
[all …]