diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-07-26 14:34:44 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-07-26 14:34:44 +0000 |
commit | fe6b1361124b56d8e102dabb8b665203f030403a (patch) | |
tree | 5476f9ab42b1920a7d71b6124247151dc9da15e8 /sys | |
parent | 1887cc9dc6d127e58763111e1d5bdcf121f35d3e (diff) |
In extent_destroy, remove the extent from the list of
all extents.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/subr_extent.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/subr_extent.c b/sys/kern/subr_extent.c index 0cc1260b059..ca58df7d879 100644 --- a/sys/kern/subr_extent.c +++ b/sys/kern/subr_extent.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_extent.c,v 1.16 2001/07/05 10:00:45 art Exp $ */ +/* $OpenBSD: subr_extent.c,v 1.17 2001/07/26 14:34:43 art Exp $ */ /* $NetBSD: subr_extent.c,v 1.7 1996/11/21 18:46:34 cgd Exp $ */ /*- @@ -248,6 +248,9 @@ extent_destroy(ex) extent_free_region_descriptor(ex, orp); } + /* Remove from the list of all extents. */ + LIST_REMOVE(ex, ex_link); + /* If we're not a fixed extent, free the extent descriptor itself. */ if ((ex->ex_flags & EXF_FIXED) == 0) free(ex, ex->ex_mtype); |