lkml.org 
[lkml]   [2000]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectPage cache bug on 2.0.xx
Date

Hi folks,

I think i've stumbled on a old-standing bug in series 2.0.xx kernel:

I'm working on ucLinux for ARM7TDMI, which is based on 2.0.38 kernel,
booting off the FTl/MTD based flashdisk.
All works fine except that i see page cache growing and growing and never
shrinking.
After investigation i found a function "invalidate_inode_pages" in
filemap.c which
frees pages belonging to an inode. The problem is that this function is....
never called in the kernel sources except in the loop device driver...
So the read ahead logic fills the page cache without limit

I'm thinking about adding a call to "invalidate_inode_pages" to the end of
"iput"
function in the inode.c, do you think this is correct approach?


-----------------------------------------
Vadim Lebedev
Chief Software Engineer
Aplio SA.
mail:vlebedev@aplio.fr
http://www.aplio.com
------------------------------------------



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.032 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site