Home
last modified time | relevance | path

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

/linux/mm/
H A Dswapfile.c3226 union swap_header *swap_header, in read_swap_header() argument
3234 if (memcmp("SWAPSPACE2", swap_header->magic.magic, 10)) { in read_swap_header()
3240 if (swab32(swap_header->info.version) == 1) { in read_swap_header()
3241 swab32s(&swap_header->info.version); in read_swap_header()
3242 swab32s(&swap_header->info.last_page); in read_swap_header()
3243 swab32s(&swap_header->info.nr_badpages); in read_swap_header()
3244 if (swap_header->info.nr_badpages > MAX_SWAP_BADPAGES) in read_swap_header()
3246 for (i = 0; i < swap_header->info.nr_badpages; i++) in read_swap_header()
3247 swab32s(&swap_header->info.badpages[i]); in read_swap_header()
3250 if (swap_header->info.version != 1) { in read_swap_header()
[all …]
/linux/include/linux/
H A Dswap.h132 union swap_header { union
202 ((offsetof(union swap_header, magic.magic) - \
203 offsetof(union swap_header, info.badpages)) / sizeof(int))