Re: [PATCHv2] perf: Fix vmalloc ring buffer free function

From: Frederic Weisbecker
Date: Wed Mar 06 2013 - 10:40:52 EST


2013/3/6 Jiri Olsa <jolsa@xxxxxxxxxx>:
> nope, because CONFIG_PERF_USE_VMALLOC rb uses only 1st slot
> of rg->data_pages[], so rb->nr_page is either 0 or 1
>
> the actuall number of pages is counted via rb->page_order
> (which is -1 for case with no data pages)

Ah right.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/