Home
last modified time | relevance | path

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

/linux-4.1.27/mm/
Dswapfile.c2169 union swap_header *swap_header, in read_swap_header() argument
2177 if (memcmp("SWAPSPACE2", swap_header->magic.magic, 10)) { in read_swap_header()
2183 if (swab32(swap_header->info.version) == 1) { in read_swap_header()
2184 swab32s(&swap_header->info.version); in read_swap_header()
2185 swab32s(&swap_header->info.last_page); in read_swap_header()
2186 swab32s(&swap_header->info.nr_badpages); in read_swap_header()
2187 for (i = 0; i < swap_header->info.nr_badpages; i++) in read_swap_header()
2188 swab32s(&swap_header->info.badpages[i]); in read_swap_header()
2191 if (swap_header->info.version != 1) { in read_swap_header()
2193 swap_header->info.version); in read_swap_header()
[all …]
/linux-4.1.27/include/linux/
Dswap.h88 union swap_header { union
138 #define __swapoffset(x) ((unsigned long)&((union swap_header *)0)->x)
/linux-4.1.27/drivers/mtd/
Dmtdswap.c1114 union swap_header *hd = (union swap_header *)(buf); in mtdswap_auto_header()