Re: [PATCH] Add ability to dump mapped pages with /proc/sys/vm/drop_caches

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Soeren Sandmann <sandmann@...>
Cc: <linux-kernel@...>
Date: Tuesday, October 2, 2007 - 4:44 am

On Monday 01 October 2007 04:03, Soeren Sandmann wrote:

invalidate_inode_pages2_range is a nasty function... only to be used
if you really know you need it (and even in that case, it's probably
wrong!).

I have on my todo list a spring clean of mm/truncate.c to attempt to
figure out how to fix this thing properly.... but until then, it's a bad idea
to put in this kind of function.

Please just unmap_mapping_range before the existing invalidate call.
Also, I don't know if there is any use in making an extra mode for this --
presumably if someone wants to drop all pagecache, they really want
to drop all pagecache.

Aside from that, I think the idea is fine and indeed should make this
more useful (I never realised it didn't throw out mapped pages, which
we really should do to have reliable testing). So, thanks.



-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Add ability to dump mapped pages with /proc/sys/..., Nick Piggin, (Tue Oct 2, 4:44 am)