patch-2.1.75 linux/include/linux/blkdev.h
Next file: linux/include/linux/coda.h
Previous file: linux/include/linux/arcdevice.h
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Sun Dec 21 17:58:36 1997
- Orig file:
v2.1.74/linux/include/linux/blkdev.h
- Orig date:
Fri Dec 19 15:53:04 1997
diff -u --recursive --new-file v2.1.74/linux/include/linux/blkdev.h linux/include/linux/blkdev.h
@@ -72,4 +72,15 @@
extern int * max_sectors[MAX_BLKDEV];
+#define MAX_SECTORS 244 /* 254 ? */
+
+#define PageAlignSize(size) (((size) + PAGE_SIZE -1) & PAGE_MASK)
+#if 0 /* small readahead */
+#define MAX_READAHEAD PageAlignSize(4096*7)
+#define MIN_READAHEAD PageAlignSize(4096*2)
+#else /* large readahead */
+#define MAX_READAHEAD PageAlignSize(4096*18)
+#define MIN_READAHEAD PageAlignSize(4096*3)
+#endif
+
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov