summaryrefslogtreecommitdiffstats
path: root/sys/gnu/fs/xfs
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2005-12-13 02:32:30 +0000
committerrodrigc <rodrigc@FreeBSD.org>2005-12-13 02:32:30 +0000
commit1e6d75869fef4abf1775b764eff1643dbb5addab (patch)
tree50cf9c794ecac4f291841f675b4e2386744d810d /sys/gnu/fs/xfs
parentda6fd2f6914d84b08a161d3650545c18a84c6b88 (diff)
downloadFreeBSD-src-1e6d75869fef4abf1775b764eff1643dbb5addab.zip
FreeBSD-src-1e6d75869fef4abf1775b764eff1643dbb5addab.tar.gz
Inherit system-wide BLKDEV_IOSIZE definition.
Submitted by: kan
Diffstat (limited to 'sys/gnu/fs/xfs')
-rw-r--r--sys/gnu/fs/xfs/FreeBSD/xfs_freebsd.h14
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)
OpenPOWER on IntegriCloud