diff options
author | pjd <pjd@FreeBSD.org> | 2012-05-29 18:11:45 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2012-05-29 18:11:45 +0000 |
commit | debc9fb27922e96181112cb91172f920894f1745 (patch) | |
tree | c8c8e80fbf3807c3941c12c01197be88da042b4d /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/space_map.c | |
parent | cf32db042c043fcc30e605a7ba74ecd27ee9871e (diff) | |
download | FreeBSD-src-debc9fb27922e96181112cb91172f920894f1745.zip FreeBSD-src-debc9fb27922e96181112cb91172f920894f1745.tar.gz |
Tighten up the assertion: because size can't be 0 and even if sm_space is equal
to sm_size, any 'sm_space - size' will be less than sm_size.
MFC after: 3 days
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/space_map.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/space_map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/space_map.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/space_map.c index 5c35816..ef5fb62 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/space_map.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/space_map.c @@ -195,7 +195,7 @@ space_map_remove(space_map_t *sm, uint64_t start, uint64_t size) } VERIFY3U(ss->ss_start, <=, start); VERIFY3U(ss->ss_end, >=, end); - VERIFY(sm->sm_space - size <= sm->sm_size); + VERIFY(sm->sm_space - size < sm->sm_size); left_over = (ss->ss_start != start); right_over = (ss->ss_end != end); |