drbd: split out some helper functions to drbd_al_begin_io
authorLars Ellenberg <lars.ellenberg@linbit.com>
Tue, 19 Mar 2013 17:16:53 +0000 (18:16 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 23 Mar 2013 00:15:17 +0000 (18:15 -0600)
commit6c3c4355d6bfa418db828684e67910c559402264
treee7cbaa778b1614342d562f56e98612b850c25046
parentb5bc8e08641805391f2c7834c40d0f647e8563c6
drbd: split out some helper functions to drbd_al_begin_io

To make the code easier to follow,
use an explicit find_active_resync_extent(),
and add a "nonblock" parameter to _al_get().

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/drbd/drbd_actlog.c