commit | b6e51316daede0633e9274e1e30391cfa4747877 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Wed Sep 16 15:13:54 2009 +0200 |
committer | Jens Axboe <jens.axboe@oracle.com> | Wed Sep 16 15:18:52 2009 +0200 |
tree | 664476bb4e7c05dcce3ad908363b482134c68429 | |
parent | bcddc3f01c9122882c8b9f12ab94a934e55aef97 [diff] |
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: Jens Axboe <jens.axboe@oracle.com>