Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758524Ab3CFPks (ORCPT ); Wed, 6 Mar 2013 10:40:48 -0500 Received: from mail-la0-f46.google.com ([209.85.215.46]:63785 "EHLO mail-la0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758009Ab3CFPkr (ORCPT ); Wed, 6 Mar 2013 10:40:47 -0500 MIME-Version: 1.0 In-Reply-To: <20130306153752.GA19141@krava.redhat.com> References: <1362155689-13719-1-git-send-email-jolsa@redhat.com> <20130306153752.GA19141@krava.redhat.com> Date: Wed, 6 Mar 2013 16:40:46 +0100 Message-ID: Subject: Re: [PATCHv2] perf: Fix vmalloc ring buffer free function From: Frederic Weisbecker To: Jiri Olsa Cc: linux-kernel@vger.kernel.org, Corey Ashford , Ingo Molnar , Namhyung Kim , Paul Mackerras , Peter Zijlstra , Arnaldo Carvalho de Melo Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 518 Lines: 13 2013/3/6 Jiri Olsa : > 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/