From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rik van Riel Subject: Re: [patch 2/5] mm + fs: prepare for non-page entries in page cache Date: Tue, 01 May 2012 17:14:57 -0400 Message-ID: <4FA05251.5060105@redhat.com> References: <1335861713-4573-1-git-send-email-hannes@cmpxchg.org> <1335861713-4573-3-git-send-email-hannes@cmpxchg.org> <20120501120246.83d2ce28.akpm@linux-foundation.org> <20120501201504.GB2112@cmpxchg.org> <20120501132449.30485966.akpm@linux-foundation.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Johannes Weiner , linux-mm@kvack.org, Andrea Arcangeli , Peter Zijlstra , Mel Gorman , Minchan Kim , Hugh Dickins , KOSAKI Motohiro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: Andrew Morton Return-path: In-Reply-To: <20120501132449.30485966.akpm@linux-foundation.org> Sender: owner-linux-mm@kvack.org List-Id: linux-fsdevel.vger.kernel.org On 05/01/2012 04:24 PM, Andrew Morton wrote: > That's a pretty significant alteration in the meaning of ->nrpages. > Did this not have any other effects? From what I see (though it's been a long day), ->nrpages stays the same it is now. The non-page entries are simply not counted in ->nrpages. > What does truncate do? I assume it invalidates shadow page entries in > the radix tree? And frees the radix-tree nodes? Indeed, truncate will get rid of the non-page entries in the radix tree. That is why it needs to be called even if ->nrpages==0. -- 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