> In checkpage() in common/os/vm_pageout.c a page that
> is to be freed has its attributes checked and if it's
> found that the P_MOD bit is set the page is paged out
> by queuing a request to the pageout thread. Is the
> P_MOD bit reset anywhere during this process and if
> so where? Presumably next time checkpage() deals with
> this page it will find it unreferenced and unmodified
> such that it may be unloaded via a call to
> hat_pageunload(). Speaking of which why is
> hat_getattr() immediately following the unload in
> checkpage()? Is this in case the page was written to
> between the time the P_MOD was discovered and the
> page was unloaded? (If it was unloaded how is it
> written to?)

Your VOP_PUTPAGE() routine should be calling pvn_getdirty() (either directly or 
via pvn_vplist_dirty()) which will eventually call hat_clrrefmod().

See ufs_putpage() and ufs_putpages() for examples of this.
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to