diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2005-12-13 02:32:30 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2005-12-13 02:32:30 +0000 |
commit | 1e6d75869fef4abf1775b764eff1643dbb5addab (patch) | |
tree | 50cf9c794ecac4f291841f675b4e2386744d810d /sys | |
parent | da6fd2f6914d84b08a161d3650545c18a84c6b88 (diff) | |
download | FreeBSD-src-1e6d75869fef4abf1775b764eff1643dbb5addab.zip FreeBSD-src-1e6d75869fef4abf1775b764eff1643dbb5addab.tar.gz |
Inherit system-wide BLKDEV_IOSIZE definition.
Submitted by: kan
Diffstat (limited to 'sys')
-rw-r--r-- | sys/gnu/fs/xfs/FreeBSD/xfs_freebsd.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/gnu/fs/xfs/FreeBSD/xfs_freebsd.h b/sys/gnu/fs/xfs/FreeBSD/xfs_freebsd.h index a75600e..66b7a85 100644 --- a/sys/gnu/fs/xfs/FreeBSD/xfs_freebsd.h +++ b/sys/gnu/fs/xfs/FreeBSD/xfs_freebsd.h @@ -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) |