Remove a check of blocknumbers/offsets which will be pointless with

64 bit daddr_t.

Sponsored by: DARPA & NAI Labs.
This commit is contained in:
phk 2002-05-18 09:32:56 +00:00
parent 1d13b5edc2
commit 50aa076033

View File

@ -686,18 +686,6 @@ spec_getpages(ap)
* VOP_STRATEGY. XXX
*/
offset = IDX_TO_OFF(ap->a_m[0]->pindex) + ap->a_offset;
#define DADDR_T_BIT (sizeof(daddr_t)*8)
#define OFFSET_MAX ((1LL << (DADDR_T_BIT + DEV_BSHIFT)) - 1)
if (offset < 0 || offset > OFFSET_MAX) {
/* XXX still no %q in kernel. */
printf("spec_getpages: preposterous offset 0x%x%08x\n",
(u_int)((u_quad_t)offset >> 32),
(u_int)(offset & 0xffffffff));
return (VM_PAGER_ERROR);
}
blkno = btodb(offset);
/*