Skip to content
Commit b6e51316 authored by Jens Axboe's avatar Jens Axboe
Browse files

writeback: separate starting of sync vs opportunistic writeback



bdi_start_writeback() is currently split into two paths, one for
WB_SYNC_NONE and one for WB_SYNC_ALL. Add bdi_sync_writeback()
for WB_SYNC_ALL writeback and let bdi_start_writeback() handle
only WB_SYNC_NONE.

Push down the writeback_control allocation and only accept the
parameters that make sense for each function. This cleans up
the API considerably.

Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent bcddc3f0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment