Re: [PATCH] block: Factor out req_set_nomerge

2016-12-01 Thread Ritesh Harjani
On 12/1/2016 9:08 PM, Jens Axboe wrote: On 12/01/2016 03:27 AM, Ritesh Harjani wrote: Factor out common code for setting REQ_NOMERGE flag which is being used out at certain places and make it a helper instead (req_set_nomerge). I applied this, but I got rid of the inline. Let the compiler

Re: [PATCH] block: Factor out req_set_nomerge

2016-12-01 Thread Jens Axboe
On 12/01/2016 03:27 AM, Ritesh Harjani wrote: > Factor out common code for setting REQ_NOMERGE > flag which is being used out at certain places > and make it a helper instead (req_set_nomerge). I applied this, but I got rid of the inline. Let the compiler do it's job, if anything this should be

[PATCH] block: Factor out req_set_nomerge

2016-12-01 Thread Ritesh Harjani
Factor out common code for setting REQ_NOMERGE flag which is being used out at certain places and make it a helper instead (req_set_nomerge). Signed-off-by: Ritesh Harjani --- block/blk-merge.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-)