swap_free() inside delete_from_swap_cache

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

 





 Why is swap_free() called inside delete_from_swap_cache() in linux 
2.4.19? I believe delete_from_swap_cache() is called when we write a page 
to the swap disk. swap_free() decreases the count of number of references 
to that page. I am not understanding why should we decrement the count of 
references when we are swapping the page to the disk.

 Thanks,
 Raghu


--
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