# Re: \[PATCH v3 2/3\] fs: Convert kiocb rw\_hint from enum to u16

- From: Theodore Y. Ts'o \<tytso@mit.edu\>
- Date: 2018-05-09 15:21:52 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2018/05/137295
- Thread: https://ratatoskr.run/linux-fsdevel/2018/05/137658/t.md

```text
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 to do priorities, he'd either need to pack into the
> existing ki_hint, or do this patch does, which is make it smaller and
> add a new member. I think the latter is cleaner.

Fair enough; but maybe we can use a u8 instead of a u16?  65,535
priorities still seem like way more than would ever make sense.  I
think 256 priorities is still way to many, but it's simpler while
still reserving number of bits for future se.

            		       	       	   - Ted

--
To unsubscribe, send a message with 'unsubscribe linux-aio' in
the body to majordomo@kvack.org.  For more info on Linux AIO,
see: http://www.kvack.org/aio/
Don't email: <a href=mailto:"aart@kvack.org">aart@kvack.org</a>
```
