lkml.org 
[lkml]   [2012]   [May]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 2/5] mm + fs: prepare for non-page entries in page cache
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


\
 
 \ /
  Last update: 2012-05-01 23:41    [W:0.142 / U:0.560 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site