diff options
author | phk <phk@FreeBSD.org> | 2002-05-18 09:32:56 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-05-18 09:32:56 +0000 |
commit | a1998ff821e56fe50832b2f060a7b8d96888d9cd (patch) | |
tree | 4df578418389e469fa608464dd71a3390c994ca3 /sys/fs | |
parent | dc6816f144c8c7d67402e0aa5e347bd065a85f01 (diff) | |
download | FreeBSD-src-a1998ff821e56fe50832b2f060a7b8d96888d9cd.zip FreeBSD-src-a1998ff821e56fe50832b2f060a7b8d96888d9cd.tar.gz |
Remove a check of blocknumbers/offsets which will be pointless with
64 bit daddr_t.
Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/specfs/spec_vnops.c | 12 |
1 files changed, 0 insertions, 12 deletions
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); /* |