From: Vasily Tarasov Date: Mon, 6 Oct 2014 15:11:49 +0000 (-0400) Subject: Removing dm_dedup_endio() X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=c5b094a3a77e55499a1b6ef3a6b85ec05423693e;p=linux-dmdedup.git Removing dm_dedup_endio() It is uselless in its current implementation. --- diff --git a/drivers/md/dm-dedup-target.c b/drivers/md/dm-dedup-target.c index 3d2cf70b4bc..89cec762de0 100644 --- a/drivers/md/dm-dedup-target.c +++ b/drivers/md/dm-dedup-target.c @@ -901,14 +901,6 @@ static int dm_dedup_message(struct dm_target *ti, return r; } -static int dm_dedup_endio(struct dm_target *ti, struct bio *bio, int error) -{ - if (error || bio_data_dir(bio) != READ) - return 0; - - return 0; -} - static struct target_type dm_dedup_target = { .name = "dedup", .version = {1, 0, 0}, @@ -916,7 +908,6 @@ static struct target_type dm_dedup_target = { .ctr = dm_dedup_ctr, .dtr = dm_dedup_dtr, .map = dm_dedup_map, - .end_io = dm_dedup_endio, .message = dm_dedup_message, .status = dm_dedup_status, };