Skip to content

Commit

Permalink
dm: return void from __send_empty_flush
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
  • Loading branch information
snitm committed Mar 10, 2022
1 parent e273634 commit 332f2b1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/md/dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,7 @@ static void __send_duplicate_bios(struct clone_info *ci, struct dm_target *ti,
}
}

static int __send_empty_flush(struct clone_info *ci)
static void __send_empty_flush(struct clone_info *ci)
{
unsigned target_nr = 0;
struct dm_target *ti;
Expand All @@ -1390,7 +1390,6 @@ static int __send_empty_flush(struct clone_info *ci)
__send_duplicate_bios(ci, ti, ti->num_flush_bios, NULL);

bio_uninit(ci->bio);
return 0;
}

static void __send_changing_extent_only(struct clone_info *ci, struct dm_target *ti,
Expand Down Expand Up @@ -1566,7 +1565,7 @@ static void dm_split_and_process_bio(struct mapped_device *md,
init_clone_info(&ci, md, map, bio);

if (bio->bi_opf & REQ_PREFLUSH) {
error = __send_empty_flush(&ci);
__send_empty_flush(&ci);
/* dm_io_complete submits any data associated with flush */
goto out;
}
Expand Down

0 comments on commit 332f2b1

Please sign in to comment.