space_map.c (209962) | space_map.c (211931) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 354 unchanged lines hidden (view full) --- 363 sm->sm_ops = NULL; 364 365 space_map_vacate(sm, NULL, NULL); 366} 367 368uint64_t 369space_map_maxsize(space_map_t *sm) 370{ | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 354 unchanged lines hidden (view full) --- 363 sm->sm_ops = NULL; 364 365 space_map_vacate(sm, NULL, NULL); 366} 367 368uint64_t 369space_map_maxsize(space_map_t *sm) 370{ |
371 if (sm->sm_loaded && sm->sm_ops != NULL) 372 return (sm->sm_ops->smop_max(sm)); 373 else 374 return (-1ULL); | 371 ASSERT(sm->sm_ops != NULL); 372 return (sm->sm_ops->smop_max(sm)); |
375} 376 377uint64_t 378space_map_alloc(space_map_t *sm, uint64_t size) 379{ 380 uint64_t start; 381 382 start = sm->sm_ops->smop_alloc(sm, size); --- 237 unchanged lines hidden --- | 373} 374 375uint64_t 376space_map_alloc(space_map_t *sm, uint64_t size) 377{ 378 uint64_t start; 379 380 start = sm->sm_ops->smop_alloc(sm, size); --- 237 unchanged lines hidden --- |