[PATCH 2/8] writeback: add wbc_to_write_cmd()

2016-04-26 Thread Jens Axboe
Add wbc_to_write_cmd(), which returns the write type to use, based on a struct writeback_control. No functional changes in this patch, but it prepares us for factoring other wbc fields for write type. Signed-off-by: Jens Axboe Reviewed-by: Jan Kara --- fs/block_dev.c| 2 +- fs/buffe

Re: [PATCH 2/8] writeback: add wbc_to_write_cmd()

2016-04-18 Thread Jens Axboe
On 04/18/2016 11:12 AM, Jan Kara wrote: On Sun 17-04-16 23:24:41, Jens Axboe wrote: Add wbc_to_write_cmd(), which returns the write type to use, based on a struct writeback_control. No functional changes in this patch, but it prepares us for factoring other wbc fields for write type. Signed-off

Re: [PATCH 2/8] writeback: add wbc_to_write_cmd()

2016-04-18 Thread Jan Kara
On Sun 17-04-16 23:24:41, Jens Axboe wrote: > Add wbc_to_write_cmd(), which returns the write type to use, based on a > struct writeback_control. No functional changes in this patch, but it > prepares us for factoring other wbc fields for write type. > > Signed-off-by: Jens Axboe Looks good. You

[PATCH 2/8] writeback: add wbc_to_write_cmd()

2016-04-17 Thread Jens Axboe
Add wbc_to_write_cmd(), which returns the write type to use, based on a struct writeback_control. No functional changes in this patch, but it prepares us for factoring other wbc fields for write type. Signed-off-by: Jens Axboe --- fs/block_dev.c| 2 +- fs/buffer.c | 2 +