Inherit system-wide BLKDEV_IOSIZE definition.

Submitted by:	kan
This commit is contained in:
Craig Rodrigues 2005-12-13 02:32:30 +00:00
parent 22fc836263
commit e497db39e8

View File

@ -118,20 +118,8 @@
#define NBPC PAGE_SIZE /* Number of bytes per click */
#define BPCSHIFT PAGE_SHIFT /* LOG2(NBPC) if exact */
/*
* Size of block device i/o is parameterized here.
* Currently the system supports page-sized i/o.
*/
#define BLKDEV_IOSHIFT BPCSHIFT
#ifndef BLKDEV_IOSIZE
#define BLKDEV_IOSIZE (1<<BLKDEV_IOSHIFT)
#else
# if NBPC != BLKDEV_IOSIZE
# error Wrong BLKDEV_IOSIZE
# endif
#endif
/* number of BB's per block device block */
#define BLKDEV_BB BTOBB(BLKDEV_IOSIZE)
#define BLKDEV_BB BTOBB(BLKDEV_IOSIZE)
/* bytes to clicks */
#define btoct(x) ((__psunsigned_t)(x)>>BPCSHIFT)