Re: [PATCH v3 2/3] fs: Convert kiocb rw_hint from enum to u16

2018-05-09 Thread Adam Manzanares
On 5/9/18 11:21 AM, Theodore Y. Ts'o wrote: > On Wed, May 09, 2018 at 08:23:00AM -0600, Jens Axboe wrote: >> Streams is essentially the only thing ki_hint is currently used for, >> with the write life time hints mapping to a stream. The idea for the >> user side API was to have other things than

Re: [PATCH v3 2/3] fs: Convert kiocb rw_hint from enum to u16

2018-05-09 Thread Theodore Y. Ts'o
On Wed, May 09, 2018 at 08:23:00AM -0600, Jens Axboe wrote: > Streams is essentially the only thing ki_hint is currently used for, > with the write life time hints mapping to a stream. The idea for the > user side API was to have other things than just write life time hints. > > Since Adam wants

Re: [PATCH v3 2/3] fs: Convert kiocb rw_hint from enum to u16

2018-05-09 Thread Jens Axboe
On 5/9/18 7:34 AM, Theodore Y. Ts'o wrote: > On Tue, May 08, 2018 at 10:42:01AM -0700, adam.manzana...@wdc.com wrote: >> diff --git a/include/linux/fs.h b/include/linux/fs.h >> index 760d8da1b6c7..7a90ce387e00 100644 >> --- a/include/linux/fs.h >> +++ b/include/linux/fs.h >> @@ -284,6 +284,8 @@

Re: [PATCH v3 2/3] fs: Convert kiocb rw_hint from enum to u16

2018-05-09 Thread Theodore Y. Ts'o
On Tue, May 08, 2018 at 10:42:01AM -0700, adam.manzana...@wdc.com wrote: > diff --git a/include/linux/fs.h b/include/linux/fs.h > index 760d8da1b6c7..7a90ce387e00 100644 > --- a/include/linux/fs.h > +++ b/include/linux/fs.h > @@ -284,6 +284,8 @@ enum rw_hint { > WRITE_LIFE_EXTREME =

[PATCH v3 2/3] fs: Convert kiocb rw_hint from enum to u16

2018-05-08 Thread adam . manzanares
From: Adam Manzanares In order to avoid kiocb bloat for per command iopriority support, rw_hint is converted from enum to a u16. Added a guard around ki_hint assigment. Signed-off-by: Adam Manzanares --- include/linux/fs.h | 15 +--