Re: tmpfs uiomove() conversion

2016-02-03 Thread Stefan Kempf
Martin Natano wrote: > Stefan Kempf wrote: > > I'm a bit uneasy though with passing signed values as-is to uiomove(). > > Can we somehow make it explicit that we know that the uiomove() argument is > > >= 0? > > > > Changing types all over the place would be too much churn though. > > > > I'm

tmpfs uiomove() conversion

2016-01-02 Thread Martin Natano
Below a diff to convert tmpfs/tmpfs_{subr,vnops}.c. That's an easy one. Nearly all the relevant size variables already are a size_t, or a smaller unsigned type. In the last hunk tn_size (an off_t) might be passed to uiomove(), which is not problematic, because tn_size is constrained to only hold