![]() |
![]()
| ![]() |
![]()
̾??
????
?????????ϰʲ????̤??Ǥ???
???å?VOP_INACTIVE ?Ǥϡ????????? vp ?????å??????ޤ??? VOP_INACTIVE ?????ɤϡ????????? vp ?????å????ʤ????Фʤ??ޤ????? VOP_RECLAIM ?Ǥϡ????????? vp ?ϥ??å????줺?????????????å??????ʤ??ޤޤǤ????٤??Ǥ??? ??????????int vop_inactive(struct vnode *vp, struct thread *td) { if (link count of vp == 0) { /* * vp ?Τ????Υե????륷???ƥ??????ΰ??????????ޤ??? */ ...; } VOP_UNLOCK(vp, 0, td); return 0; } int vop_reclaim(struct vnode *vp, struct thread *td) { /* * ̾???????å????????ݤ??ޤ??? */ cache_purge(vp); /* * ?ե????륷???ƥ??˴?Ϣ?????ǡ????????????ޤ??? */ ...; return 0; } ??Ϣ???????????Υޥ˥奢???ڡ????? Doug Rabson ???ޤ?????
|