mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-01 06:04:51 +00:00
Remove the unused definitions of ctod() and dotc().
This commit is contained in:
parent
01e8018af8
commit
4c51ae2155
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=96604
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue