Home
last modified time | relevance | path

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

/linux-5.19.10/mm/
Dswapfile.c2826 union swap_header *swap_header, in read_swap_header() argument
2834 if (memcmp("SWAPSPACE2", swap_header->magic.magic, 10)) { in read_swap_header()
2840 if (swab32(swap_header->info.version) == 1) { in read_swap_header()
2841 swab32s(&swap_header->info.version); in read_swap_header()
2842 swab32s(&swap_header->info.last_page); in read_swap_header()
2843 swab32s(&swap_header->info.nr_badpages); in read_swap_header()
2844 if (swap_header->info.nr_badpages > MAX_SWAP_BADPAGES) in read_swap_header()
2846 for (i = 0; i < swap_header->info.nr_badpages; i++) in read_swap_header()
2847 swab32s(&swap_header->info.badpages[i]); in read_swap_header()
2850 if (swap_header->info.version != 1) { in read_swap_header()
[all …]
/linux-5.19.10/include/linux/
Dswap.h142 union swap_header { union
193 ((offsetof(union swap_header, magic.magic) - \
194 offsetof(union swap_header, info.badpages)) / sizeof(int))
/linux-5.19.10/drivers/mtd/
Dmtdswap.c1063 union swap_header *hd = (union swap_header *)(buf); in mtdswap_auto_header()