diff options
author | kib <kib@FreeBSD.org> | 2013-03-21 07:26:33 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2013-03-21 07:26:33 +0000 |
commit | 20a66ac4033ea025111b5bfaa05b8390f33f9e33 (patch) | |
tree | 4979561fe7620c3e052443ba761557d432392d88 /sys/geom | |
parent | 6620c04e30ce88c7505b5231cb3513cfeb227c43 (diff) | |
download | FreeBSD-src-20a66ac4033ea025111b5bfaa05b8390f33f9e33.zip FreeBSD-src-20a66ac4033ea025111b5bfaa05b8390f33f9e33.tar.gz |
Assert that transient mapping of the bio is only done when unmapped
buffers are allowed.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/geom_io.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/geom/geom_io.c b/sys/geom/geom_io.c index 6ffc06e..f611168 100644 --- a/sys/geom/geom_io.c +++ b/sys/geom/geom_io.c @@ -628,6 +628,8 @@ g_io_transient_map_bio(struct bio *bp) u_int retried; int rv; + KASSERT(unmapped_buf_allowed, ("unmapped disabled")); + size = round_page(bp->bio_ma_offset + bp->bio_length); KASSERT(size / PAGE_SIZE == bp->bio_ma_n, ("Bio too short %p", bp)); addr = 0; |