From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752897AbZIIDqa (ORCPT ); Tue, 8 Sep 2009 23:46:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752522AbZIIDqa (ORCPT ); Tue, 8 Sep 2009 23:46:30 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:51973 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751565AbZIIDq3 (ORCPT ); Tue, 8 Sep 2009 23:46:29 -0400 Message-ID: <4AA724CB.1070401@cn.fujitsu.com> Date: Wed, 09 Sep 2009 11:45:15 +0800 From: Li Zefan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Thunderbird/3.0b2 MIME-Version: 1.0 To: David Rientjes CC: Dave Hansen , Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [patch 3/4 -mm] flex_array: poison free elements References: <1251129384.22398.7166.camel@nimitz> <1251150156.22398.8289.camel@nimitz> <4AA70D4F.3040503@cn.fujitsu.com> <4AA72175.5000108@cn.fujitsu.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 11:41, David Rientjes wrote: > On Wed, 9 Sep 2009, Li Zefan wrote: > >> I was not talking about ftrace_ret_stack, I was talking about >> struct ftrace_page and struct ftrace_profile_page. ;) >> > > Gack, ftrace_page would probably be better off simply using the flex list > implementation I suggested which constructs a list from page->lru since it > doesn't appear to require indexing into the array, it simply requires an > iteration in all cases (or am I wrong?). Flex lists could easily be made > to support seqfiles. > Right, iteration is needed but indexing is not. I thought about flex list too, flex array has some limitations which make it hard to find a real user.