linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* "orphaned pagecache memleak fix" question.
@ 2005-04-05 16:02 Nikita Danilov
  2005-04-06  7:58 ` Andrew Morton
  0 siblings, 1 reply; 9+ messages in thread
From: Nikita Danilov @ 2005-04-05 16:02 UTC (permalink / raw)
  To: Andrea Arcangeli; +Cc: linux-mm, Andrew Morton

Hello,

I have few question about recent "orphaned pagecache memleak fix"
change-set:

 - how is it supposed to work with file systems that use page->private
 (and PG_private) for something else than buffer head ring? Such file
 systems may leak truncated pages for precisely the same reasons
 reiserfs does, and try_to_free_buffers(page) will most likely oops;

 - as I see it, nr_dirty shouldn't be updated after calling
 ClearPageDirty() because page->mapping was NULL already at the time of
 corresponding __set_page_dirty_nobuffers() call. Right?

 - wouldn't it be simpler to unconditionally remove page from LRU in
 ->invalidatepage()?

Nikita.

--
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/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-04-06 21:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-05 16:02 "orphaned pagecache memleak fix" question Nikita Danilov
2005-04-06  7:58 ` Andrew Morton
2005-04-06 12:06   ` Nikita Danilov
2005-04-06 19:27     ` Andrew Morton
2005-04-06 21:07       ` Nikita Danilov
2005-04-06 21:34         ` Andrew Morton
2005-04-06 21:12   ` Chris Mason
2005-04-06 21:30     ` Andrew Morton
2005-04-06 21:50       ` Chris Mason

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox