From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rik van Riel Subject: Re: [patch 1/5] mm: readahead: move radix tree hole searching here Date: Tue, 01 May 2012 17:06:21 -0400 Message-ID: <4FA0504D.60802@redhat.com> References: <1335861713-4573-1-git-send-email-hannes@cmpxchg.org> <1335861713-4573-2-git-send-email-hannes@cmpxchg.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: linux-mm@kvack.org, Andrea Arcangeli , Peter Zijlstra , Mel Gorman , Andrew Morton , Minchan Kim , Hugh Dickins , KOSAKI Motohiro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: Johannes Weiner Return-path: In-Reply-To: <1335861713-4573-2-git-send-email-hannes@cmpxchg.org> Sender: owner-linux-mm@kvack.org List-Id: linux-fsdevel.vger.kernel.org On 05/01/2012 04:41 AM, Johannes Weiner wrote: > The readahead code searches the page cache for non-present pages, or > holes, to get a picture of the area surrounding a fault e.g. > > For this it sufficed to rely on the radix tree definition of holes, > which is "empty tree slot". This is about to change, though, because > shadow page descriptors will be stored in the page cache when the real > pages get evicted from memory. > > Fortunately, nobody outside the readahead code uses these functions > and they have no internal knowledge of the radix tree structures, so > just move them over to mm/readahead.c where they can later be adapted > to handle the new definition of "page cache hole". > > Signed-off-by: Johannes Weiner Reviewed-by: Rik van Riel -- All rights reversed -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org