• Jens Axboe's avatar
    writeback: separate starting of sync vs opportunistic writeback · b6e51316
    Jens Axboe authored
    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>
    b6e51316
page-writeback.c 35.9 KB