Home
last modified time | relevance | path

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

/Linux-v5.4/mm/
Dswapfile.c2932 union swap_header *swap_header, in read_swap_header() argument
2940 if (memcmp("SWAPSPACE2", swap_header->magic.magic, 10)) { in read_swap_header()
2946 if (swab32(swap_header->info.version) == 1) { in read_swap_header()
2947 swab32s(&swap_header->info.version); in read_swap_header()
2948 swab32s(&swap_header->info.last_page); in read_swap_header()
2949 swab32s(&swap_header->info.nr_badpages); in read_swap_header()
2950 if (swap_header->info.nr_badpages > MAX_SWAP_BADPAGES) in read_swap_header()
2952 for (i = 0; i < swap_header->info.nr_badpages; i++) in read_swap_header()
2953 swab32s(&swap_header->info.badpages[i]); in read_swap_header()
2956 if (swap_header->info.version != 1) { in read_swap_header()
[all …]
/Linux-v5.4/include/linux/
Dswap.h110 union swap_header { union
161 ((offsetof(union swap_header, magic.magic) - \
162 offsetof(union swap_header, info.badpages)) / sizeof(int))
/Linux-v5.4/drivers/mtd/
Dmtdswap.c1065 union swap_header *hd = (union swap_header *)(buf); in mtdswap_auto_header()