Subversion Repositories HelenOS-historic

Rev

Rev 764 | Rev 766 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 764 Rev 765
Line 409... Line 409...
409
    /* Compute slab sizes, object counts in slabs etc. */
409
    /* Compute slab sizes, object counts in slabs etc. */
410
    if (cache->size < SLAB_INSIDE_SIZE)
410
    if (cache->size < SLAB_INSIDE_SIZE)
411
        cache->flags |= SLAB_CACHE_SLINSIDE;
411
        cache->flags |= SLAB_CACHE_SLINSIDE;
412
 
412
 
413
    /* Minimum slab order */
413
    /* Minimum slab order */
414
    cache->order = (cache->size / PAGE_SIZE) + 1;
414
    cache->order = (cache->size >> PAGE_WIDTH) + 1;
415
       
415
       
416
    while (badness(cache) > SLAB_MAX_BADNESS(cache)) {
416
    while (badness(cache) > SLAB_MAX_BADNESS(cache)) {
417
        cache->order += 1;
417
        cache->order += 1;
418
    }
418
    }
419
 
419