Remove the unused definitions of ctod() and dotc().

This commit is contained in:
Poul-Henning Kamp 2002-05-14 20:01:34 +00:00
parent 01e8018af8
commit 4c51ae2155
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=96604
4 changed files with 0 additions and 16 deletions

View file

@ -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)

View file

@ -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

View file

@ -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)

View file

@ -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