aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/geom_io.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2007-12-16 18:03:31 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2007-12-16 18:03:31 +0000
commiteed6cda9668f6694c21deb72b667318614b06003 (patch)
tree37d34ffd3142f02e8bde7f9d7e8720a56633e992 /sys/geom/geom_io.c
parent20a0f65b772116883bdb6337866cc65ef0b598af (diff)
downloadsrc-eed6cda9668f6694c21deb72b667318614b06003.tar.gz
src-eed6cda9668f6694c21deb72b667318614b06003.zip
Don't limit BIO_DELETE requests to MAXPHYS, they perform no data
transfers, so they are not subject to the VM system limitation.
Notes
Notes: svn path=/head/; revision=174669
Diffstat (limited to 'sys/geom/geom_io.c')
-rw-r--r--sys/geom/geom_io.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/geom/geom_io.c b/sys/geom/geom_io.c
index 3848f4591f11..5e27f364f131 100644
--- a/sys/geom/geom_io.c
+++ b/sys/geom/geom_io.c
@@ -652,9 +652,8 @@ g_delete_data(struct g_consumer *cp, off_t offset, off_t length)
struct bio *bp;
int error;
- KASSERT(length > 0 && length >= cp->provider->sectorsize &&
- length <= MAXPHYS, ("g_delete_data(): invalid length %jd",
- (intmax_t)length));
+ KASSERT(length > 0 && length >= cp->provider->sectorsize,
+ ("g_delete_data(): invalid length %jd", (intmax_t)length));
bp = g_alloc_bio();
bp->bio_cmd = BIO_DELETE;