Subject: Re: removing VOPs
To: Jason Thorpe <thorpej@shagadelic.org>
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
List: tech-kern
Date: 10/20/2005 18:17:53
On Thu, Oct 20, 2005 at 08:48:54AM -0700, Jason Thorpe wrote:
>
> On Oct 20, 2005, at 4:18 AM, YAMAMOTO Takashi wrote:
>
> >i guess that an alternative would be just making fss do VOP_WRITE
> >when it needs to allocate blocks.
>
> Doesn't that have the unfortunate side-effect of polluting the page
> cache with extra copies of the data?
Yes, therefore I used VOP_BMAP/VOP_BALLOC for fss(4).
Would it be ok to use
ubc_alloc(&vp->v_uobj, ..)
uiomove()
ubc_release(.., UBC_UNMAP)
or
vn_rdwr()
VOP_PUTPAGES(.., PGO_CLEANIT|PGO_SYNCIO|PGO_FREE);
> -- thorpej
--
Juergen Hannken-Illjes - hannken@eis.cs.tu-bs.de - TU Braunschweig (Germany)