Re: [PATCH 08/17] ioprio: Add a macro named NICE_TO_IOPRIO.

2014-03-19 Thread Peter Zijlstra
On Tue, Mar 11, 2014 at 06:09:16PM +0800, Dongsheng Yang wrote: > As the task nice value is in [-20, 19] and the io priority is in [0, 7], > and the convert method from niceval to ioprio is implemented with an > opened code in task_nice_ioprio(). > > This patch move the implementation to a macro N

Re: [PATCH 08/17] ioprio: Add a macro named NICE_TO_IOPRIO.

2014-03-12 Thread Dongsheng Yang
On 03/11/2014 06:09 PM, Dongsheng Yang wrote: As the task nice value is in [-20, 19] and the io priority is in [0, 7], and the convert method from niceval to ioprio is implemented with an opened code in task_nice_ioprio(). This patch move the implementation to a macro NICE_TO_IOPRIO, making it m

[PATCH 08/17] ioprio: Add a macro named NICE_TO_IOPRIO.

2014-03-11 Thread Dongsheng Yang
As the task nice value is in [-20, 19] and the io priority is in [0, 7], and the convert method from niceval to ioprio is implemented with an opened code in task_nice_ioprio(). This patch move the implementation to a macro NICE_TO_IOPRIO, making it more readable and modular. Signed-off-by: Dongsh