Re: try_to_unmap_file( ) in non-linear memory region of the file

2007-11-28 Thread Thomas Petazzoni
Le Tue, 27 Nov 2007 19:30:00 +0800, "Wang Yu" <[EMAIL PROTECTED]> a écrit : > What I want to know is what is the meaning of cursor and CLUSTER_SIZE? > and what does try_to_unmap_cluster want to do? > I am appreciated if someone will explain these codes in detail or give > me some documents about t

Re: try_to_unmap_file( ) in non-linear memory region of the file

2007-11-27 Thread Thomas Petazzoni
Le Tue, 27 Nov 2007 19:30:00 +0800, "Wang Yu" <[EMAIL PROTECTED]> a écrit : > When the mapping is non-linear, in try_to_unmap_file( ) we will have > the following codes: For those (like me) who are discovering what non-linear mappings are, LWN has an insightful introduction article: http://lwn.ne

try_to_unmap_file( ) in non-linear memory region of the file

2007-11-27 Thread Wang Yu
Hi, all When the mapping is non-linear, in try_to_unmap_file( ) we will have the following codes: list_for_each_entry(vma, &mapping->i_mmap_nonlinear, shared.vm_set.list) { if ((vma->vm_flags & VM_LOCKED) && !migration)