Thread (33 messages) 33 messages, 8 authors, 2004-03-05

Re: Non-GPL export of invalidate_mmap_range

From: Paul E. McKenney <hidden>
Date: 2004-02-20 23:23:40
Also in: lkml

On Fri, Feb 20, 2004 at 06:00:32PM -0500, Daniel Phillips wrote:
On Friday 20 February 2004 09:01, Paul E. McKenney wrote:
quoted
On Fri, Feb 20, 2004 at 03:37:26PM -0500, Daniel Phillips wrote:
quoted
Actually, I erred there in that invalidate_mmap_range should not export
the flag, because it never makes sense to pass in non-zero from a DFS.
Doesn't vmtruncate() want to pass non-zero "all" in to
invalidate_mmap_range() in order to maintain compatibility with existing
Linux semantics?
That comes from inside.  The DFS's truncate interface should just be 
vmtruncate.  If I missed something, please shout.
Agreed, the DFS's truncate interface should be vmtruncate().

Your earlier patch has a call to invalidate_mmap_range() within
vmtruncate(), which passes "1" to the last arg, so as to get
rid of all mappings to the truncated portion of the file.
So either invalidate_mmap_range() needs to keep the fourth arg
or needs to be a wrapper for an underlying function that
vmtruncate() can call, or some such.

The latter may be what you intended to do.

						Thanx, Paul
--
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>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help