lkml.org 
[lkml]   [2005]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: How to reclaim inode pages on demand
On Mon, 8 August 2005 16:52:52 +0100, Mel Gorman wrote:
>
> I am working on a direct reclaim strategy to free up large blocks of
> contiguous pages. The part I have is working fine, but I am finding a
> hundreds of pages that are being used for inodes that I need to reclaim. I
> tried purging the inode lists using a variation of prune_icache() but it
> is not working out.
>
> Given a struct page, that one knows is an inode, can anyone suggest the
> best way to find the inode using it and free it?

A struct page ain't an inode. So I'm assuming you mean something like
"giving a struct page that is known to be part of the inode slab
cache".

In that case, you have to decide how intimate you want the slab code
and your page/inode reclaim code to be. You could use slab structures
to find out the (ofs,len) tupel of contained structures, cast those
to a struct inode and then continue. Whether you actually want that,
depends on your moral standards.

Jörn

--
I don't understand it. Nobody does.
-- Richard P. Feynman
-
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/

\
 
 \ /
  Last update: 2005-08-08 18:11    [W:0.276 / U:0.520 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site