Home
last modified time | relevance | path

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

/linux-2.4.37.9/mm/
Dswapfile.c879 union swap_header *swap_header = 0; in sys_swapon() local
974 swap_header = (void *) __get_free_page(GFP_USER); in sys_swapon()
975 if (!swap_header) { in sys_swapon()
981 lock_page(virt_to_page(swap_header)); in sys_swapon()
982 rw_swap_page_nolock(READ, SWP_ENTRY(type,0), (char *) swap_header); in sys_swapon()
984 if (!memcmp("SWAP-SPACE",swap_header->magic.magic,10)) in sys_swapon()
986 else if (!memcmp("SWAPSPACE2",swap_header->magic.magic,10)) in sys_swapon()
996 memset(((char *) swap_header)+PAGE_SIZE-10,0,10); in sys_swapon()
1001 if (test_bit(i,(char *) swap_header)) { in sys_swapon()
1016 if (test_bit(i,(char *) swap_header)) in sys_swapon()
[all …]
/linux-2.4.37.9/include/linux/
Dswap.h25 union swap_header { union
47 #define __swapoffset(x) ((unsigned long)&((union swap_header *)0)->x)