4 #define INDIRECT_SWAP 1
8 #include "block_pool.h"
9 #endif /* INDIRECT_SWAP */
12 extern struct pool_head swap_table;
14 extern int *swap_table_mem;
15 extern struct block_pool swap_block_pool;
16 #endif /* INDIRECT_SWAP */
19 void swap_init(int n_table);
22 void swap_copy(int src_base, int dest_base, int paras);
23 void swap_copy_up(int src_limit, int dest_limit, int paras);
24 #else /* INDIRECT_SWAP */
25 void swap_init(int n_table, int n_blocks);
26 #endif /* INDIRECT_SWAP */