swap_header 115 include/linux/swap.h #define __swapoffset(x) ((unsigned long)&((union swap_header *)0)->x) swap_header 1461 mm/swapfile.c union swap_header *swap_header = NULL; swap_header 1560 mm/swapfile.c swap_header = page_address(page); swap_header 1562 mm/swapfile.c if (!memcmp("SWAP-SPACE",swap_header->magic.magic,10)) swap_header 1564 mm/swapfile.c else if (!memcmp("SWAPSPACE2",swap_header->magic.magic,10)) swap_header 1580 mm/swapfile.c if (swab32(swap_header->info.version) == 1) { swap_header 1581 mm/swapfile.c swab32s(&swap_header->info.version); swap_header 1582 mm/swapfile.c swab32s(&swap_header->info.last_page); swap_header 1583 mm/swapfile.c swab32s(&swap_header->info.nr_badpages); swap_header 1584 mm/swapfile.c for (i = 0; i < swap_header->info.nr_badpages; i++) swap_header 1585 mm/swapfile.c swab32s(&swap_header->info.badpages[i]); swap_header 1589 mm/swapfile.c if (swap_header->info.version != 1) { swap_header 1592 mm/swapfile.c swap_header->info.version); swap_header 1615 mm/swapfile.c if (maxpages > swap_header->info.last_page) swap_header 1616 mm/swapfile.c maxpages = swap_header->info.last_page; swap_header 1627 mm/swapfile.c if (swap_header->info.nr_badpages && S_ISREG(inode->i_mode)) swap_header 1629 mm/swapfile.c if (swap_header->info.nr_badpages > MAX_SWAP_BADPAGES) swap_header 1641 mm/swapfile.c for (i = 0; i < swap_header->info.nr_badpages; i++) { swap_header 1642 mm/swapfile.c int page_nr = swap_header->info.badpages[i]; swap_header 1643 mm/swapfile.c if (page_nr <= 0 || page_nr >= swap_header->info.last_page) swap_header 1648 mm/swapfile.c nr_good_pages = swap_header->info.last_page - swap_header 1649 mm/swapfile.c swap_header->info.nr_badpages -