Re: [PATCH] - Allocate larger cache_cache if order 0 fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jack,

On 3/7/06, Jack Steiner <[email protected]> wrote:
> -       cache_estimate(0, cache_cache.buffer_size, cache_line_size(), 0,
> -                      &left_over, &cache_cache.num);
> +       for (order = 0; order < MAX_ORDER; order++) {
> +               cache_estimate(order, cache_cache.buffer_size, cache_line_size(), 0,
> +                       &left_over, &cache_cache.num);
> +               if (cache_cache.num)
> +                       break;
> +       }

Any reason why you can't use calculate_slab_order() here?

                                   Pekka
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux