Subject: Re: loaning for read() of regular files
To: Chuck Silvers <chuq@chuq.com>
From: Matthias Drochner <M.Drochner@fz-juelich.de>
List: tech-kern
Date: 02/15/2005 21:37:41
chuq@chuq.com said:
>     int uvm_map_loanobj(struct vm_map *, struct uvm_object *, struct
> uio *); 

Is there a reason (besides conservatism) that this
is done on a whole-uio base?
The uio is unrolled in fs code later anyway, and having
the hook there (or even integrating it into ubc_alloc???)
would allow for more fine-grained alignment checks,
eventually loaning single pages out of a smaller read().

Didn't look deeper, just trying to understand...

best regards
Matthias