swap_header 1065 drivers/mtd/mtdswap.c union swap_header *hd = (union swap_header *)(buf); swap_header 161 include/linux/swap.h ((offsetof(union swap_header, magic.magic) - \ swap_header 162 include/linux/swap.h offsetof(union swap_header, info.badpages)) / sizeof(int)) swap_header 2928 mm/swapfile.c union swap_header *swap_header, swap_header 2936 mm/swapfile.c if (memcmp("SWAPSPACE2", swap_header->magic.magic, 10)) { swap_header 2942 mm/swapfile.c if (swab32(swap_header->info.version) == 1) { swap_header 2943 mm/swapfile.c swab32s(&swap_header->info.version); swap_header 2944 mm/swapfile.c swab32s(&swap_header->info.last_page); swap_header 2945 mm/swapfile.c swab32s(&swap_header->info.nr_badpages); swap_header 2946 mm/swapfile.c if (swap_header->info.nr_badpages > MAX_SWAP_BADPAGES) swap_header 2948 mm/swapfile.c for (i = 0; i < swap_header->info.nr_badpages; i++) swap_header 2949 mm/swapfile.c swab32s(&swap_header->info.badpages[i]); swap_header 2952 mm/swapfile.c if (swap_header->info.version != 1) { swap_header 2954 mm/swapfile.c swap_header->info.version); swap_header 2963 mm/swapfile.c last_page = swap_header->info.last_page; swap_header 2988 mm/swapfile.c if (swap_header->info.nr_badpages && S_ISREG(inode->i_mode)) swap_header 2990 mm/swapfile.c if (swap_header->info.nr_badpages > MAX_SWAP_BADPAGES) swap_header 3004 mm/swapfile.c union swap_header *swap_header, swap_header 3022 mm/swapfile.c for (i = 0; i < swap_header->info.nr_badpages; i++) { swap_header 3023 mm/swapfile.c unsigned int page_nr = swap_header->info.badpages[i]; swap_header 3024 mm/swapfile.c if (page_nr == 0 || page_nr > swap_header->info.last_page) swap_header 3106 mm/swapfile.c union swap_header *swap_header; swap_header 3171 mm/swapfile.c swap_header = kmap(page); swap_header 3173 mm/swapfile.c maxpages = read_swap_header(p, swap_header, inode); swap_header 3233 mm/swapfile.c nr_extents = setup_swap_map_and_extents(p, swap_header, swap_map,