diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2011-01-25 11:33:38 -0500 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2011-03-10 05:48:15 -0500 |
commit | c5a91619793d444e5103ec5841045bf878718398 (patch) | |
tree | 3a1457aaaba954610b8bd55f27b8f4e9997bf936 /drivers/block/drbd/drbd_actlog.c | |
parent | fdda6544ad4d3284246e717b7108f7f497b45295 (diff) |
drbd: Remove unused function atodb_endio()
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_actlog.c')
-rw-r--r-- | drivers/block/drbd/drbd_actlog.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/drivers/block/drbd/drbd_actlog.c b/drivers/block/drbd/drbd_actlog.c index a6050791401b..2a1642bc451d 100644 --- a/drivers/block/drbd/drbd_actlog.c +++ b/drivers/block/drbd/drbd_actlog.c | |||
@@ -542,33 +542,6 @@ cancel: | |||
542 | return 1; | 542 | return 1; |
543 | } | 543 | } |
544 | 544 | ||
545 | static void atodb_endio(struct bio *bio, int error) | ||
546 | { | ||
547 | struct drbd_atodb_wait *wc = bio->bi_private; | ||
548 | struct drbd_conf *mdev = wc->mdev; | ||
549 | struct page *page; | ||
550 | int uptodate = bio_flagged(bio, BIO_UPTODATE); | ||
551 | |||
552 | /* strange behavior of some lower level drivers... | ||
553 | * fail the request by clearing the uptodate flag, | ||
554 | * but do not return any error?! */ | ||
555 | if (!error && !uptodate) | ||
556 | error = -EIO; | ||
557 | |||
558 | drbd_chk_io_error(mdev, error, true); | ||
559 | if (error && wc->error == 0) | ||
560 | wc->error = error; | ||
561 | |||
562 | if (atomic_dec_and_test(&wc->count)) | ||
563 | complete(&wc->io_done); | ||
564 | |||
565 | page = bio->bi_io_vec[0].bv_page; | ||
566 | put_page(page); | ||
567 | bio_put(bio); | ||
568 | mdev->bm_writ_cnt++; | ||
569 | put_ldev(mdev); | ||
570 | } | ||
571 | |||
572 | /** | 545 | /** |
573 | * drbd_al_apply_to_bm() - Sets the bitmap to diry(1) where covered ba active AL extents | 546 | * drbd_al_apply_to_bm() - Sets the bitmap to diry(1) where covered ba active AL extents |
574 | * @mdev: DRBD device. | 547 | * @mdev: DRBD device. |