Home
last modified time | relevance | path

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

/linux-3.4.99/mm/
Dswapfile.c1893 union swap_header *swap_header, in read_swap_header() argument
1900 if (memcmp("SWAPSPACE2", swap_header->magic.magic, 10)) { in read_swap_header()
1906 if (swab32(swap_header->info.version) == 1) { in read_swap_header()
1907 swab32s(&swap_header->info.version); in read_swap_header()
1908 swab32s(&swap_header->info.last_page); in read_swap_header()
1909 swab32s(&swap_header->info.nr_badpages); in read_swap_header()
1910 for (i = 0; i < swap_header->info.nr_badpages; i++) in read_swap_header()
1911 swab32s(&swap_header->info.badpages[i]); in read_swap_header()
1914 if (swap_header->info.version != 1) { in read_swap_header()
1917 swap_header->info.version); in read_swap_header()
[all …]
/linux-3.4.99/include/linux/
Dswap.h84 union swap_header { union
142 #define __swapoffset(x) ((unsigned long)&((union swap_header *)0)->x)
/linux-3.4.99/drivers/mtd/
Dmtdswap.c1114 union swap_header *hd = (union swap_header *)(buf); in mtdswap_auto_header()