summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/alpha/include/param.h4
-rw-r--r--sys/arm/include/param.h4
-rw-r--r--sys/ia64/include/param.h4
-rw-r--r--sys/powerpc/include/param.h4
4 files changed, 0 insertions, 16 deletions
diff --git a/sys/alpha/include/param.h b/sys/alpha/include/param.h
index 04828fa..f32b749 100644
--- a/sys/alpha/include/param.h
+++ b/sys/alpha/include/param.h
@@ -151,10 +151,6 @@
#endif /* MCLSHIFT */
#define MCLBYTES (1 << MCLSHIFT) /* size of a mbuf cluster */
-/* pages ("clicks") to disk blocks */
-#define ctod(x) ((x) << (PAGE_SHIFT - DEV_BSHIFT))
-#define dtoc(x) ((x) >> (PAGE_SHIFT - DEV_BSHIFT))
-
/* pages to bytes */
#define ctob(x) ((x) << PAGE_SHIFT)
#define btoc(x) (((x) + PAGE_MASK) >> PAGE_SHIFT)
diff --git a/sys/arm/include/param.h b/sys/arm/include/param.h
index 7dda79d..5a743cc 100644
--- a/sys/arm/include/param.h
+++ b/sys/arm/include/param.h
@@ -136,10 +136,6 @@
/* bytes to clicks */
#define btoc(x) (((unsigned)(x) + PAGE_MASK) >> PAGE_SHIFT)
-/* pages ("clicks") to disk blocks */
-#define ctod(x) ((x) << (PAGE_SHIFT - DEV_BSHIFT))
-#define dtoc(x) ((x) >> (PAGE_SHIFT - DEV_BSHIFT))
-
/* bytes to disk blocks */
/*
* btodb() is messy and perhaps slow because `bytes' may be an off_t. We
diff --git a/sys/ia64/include/param.h b/sys/ia64/include/param.h
index a516325..dff273e 100644
--- a/sys/ia64/include/param.h
+++ b/sys/ia64/include/param.h
@@ -177,10 +177,6 @@
#define NKMEMCLUSTERS (4096*1024/CLBYTES) /* XXX? */
#endif
-/* pages ("clicks") to disk blocks */
-#define ctod(x) ((x) << (PAGE_SHIFT - DEV_BSHIFT))
-#define dtoc(x) ((x) >> (PAGE_SHIFT - DEV_BSHIFT))
-
/* pages to bytes */
#define ctob(x) ((x) << PAGE_SHIFT)
#define btoc(x) (((x) + PAGE_MASK) >> PAGE_SHIFT)
diff --git a/sys/powerpc/include/param.h b/sys/powerpc/include/param.h
index 25a9205..81bc3db 100644
--- a/sys/powerpc/include/param.h
+++ b/sys/powerpc/include/param.h
@@ -144,10 +144,6 @@
/* bytes to clicks */
#define btoc(x) (((unsigned)(x) + PAGE_MASK) >> PAGE_SHIFT)
-/* pages ("clicks") to disk blocks */
-#define ctod(x) ((x) << (PAGE_SHIFT - DEV_BSHIFT))
-#define dtoc(x) ((x) >> (PAGE_SHIFT - DEV_BSHIFT))
-
/* bytes to disk blocks */
/*
* btodb() is messy and perhaps slow because `bytes' may be an off_t. We
OpenPOWER on IntegriCloud