From a1998ff821e56fe50832b2f060a7b8d96888d9cd Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 18 May 2002 09:32:56 +0000 Subject: Remove a check of blocknumbers/offsets which will be pointless with 64 bit daddr_t. Sponsored by: DARPA & NAI Labs. --- sys/fs/specfs/spec_vnops.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'sys/fs') diff --git a/sys/fs/specfs/spec_vnops.c b/sys/fs/specfs/spec_vnops.c index ef796a3..f559b79 100644 --- a/sys/fs/specfs/spec_vnops.c +++ b/sys/fs/specfs/spec_vnops.c @@ -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); /* -- cgit v1.1