patch-2.0.34 linux/include/linux/swap.h
Next file: linux/include/linux/xd.h
Previous file: linux/include/linux/smbno.h
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Wed Jun 3 15:17:50 1998
- Orig file:
v2.0.33/linux/include/linux/swap.h
- Orig date:
Mon Jun 3 05:38:37 1996
diff -u --recursive --new-file v2.0.33/linux/include/linux/swap.h linux/include/linux/swap.h
@@ -16,11 +16,14 @@
#define SWAP_CLUSTER_MAX 32
+#define SWAP_MAP_MAX 0xfffe /* max val of swapinfo->swap_map[n] */
+#define SWAP_MAP_RESERVED 0xffff /* max val of swapinfo->swap_map[n] */
+
struct swap_info_struct {
unsigned int flags;
kdev_t swap_device;
struct inode * swap_file;
- unsigned char * swap_map;
+ unsigned short * swap_map;
unsigned char * swap_lockmap;
int lowest_bit;
int highest_bit;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov