RE: pte_dirty and PageDirty?

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

 




>-----Original Message-----
>From: kernelnewbies-bounce@xxxxxxxxxxxx
>[mailto:kernelnewbies-bounce@xxxxxxxxxxxx]On Behalf Of Mauricio Lin
y?



>Does anyone know the difference between pte_dirty(pte)
>and PageDirty(page)?

>AFAIK each pte points to a page frame and should be
>the same, but sometimes pte_dirty returns true and
>PageDirty returns false for the same physical page
>frame. Below is a snippet of code:

 From what I know, 'pte_dirty' function acts on a 
Page Table Entry and check for the dirty bit where as
 'PageDirty' work on a 'struct page' and is concerned
with PG_dirty flag. The reason for getting different
results for the two functions could be because the processor
has updated the 'dirty' bit in the PTE but the kernel is 
yet to (if at all) update the PG_dirty flag for the corresponding
struct page.

Correct me if I am wrong.

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