question about shrink_list(2.6.9)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The following code excerpt from shrink_list function.
I think if condition B is true ,then condition A must
be true.So there have no chance of excuting the
condition B's code(when it's). 
    


referenced = page_referenced(page, 1);
/* In active use or really unfreeable?  Activate it.
*/
if (referenced && page_mapping_inuse(page)) 
//condition A
     goto activate_locked;

.....
/*
 * The page is mapped into the page tables of one or
more
 * processes. Try to unmap it here.
 */
 if (page_mapped(page) && mapping) {  //condition B


Anyone's comments appreciated!

Best Regards!

Bao Zhao



		
__________________________________ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux