On Thu, 2003-05-22 at 12:40, David S. Miller wrote: > +static unsigned long size_to_order(unsigned long size) > +{ > + unsigned long order; > + > + for (order = 0; order < MAX_ORDER; order++) { > + if ((PAGE_SIZE << order) >= size) > + break; > + } > + return order; > +} Any reason you're not using get_order() ? -- /Martin - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html