diff options
author | Mike Snitzer <snitzer@redhat.com> | 2022-03-10 16:25:28 -0500 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2022-03-10 16:52:11 -0500 |
commit | 332f2b1e7360dc118d95bc6f15bcb6830b73a8aa (patch) | |
tree | cce433880649f6eb37094e3db37485242b5a7af9 /drivers/md | |
parent | e27363472f9bc96db831ceb2c31cf8b9a7c5b6f3 (diff) | |
download | linux-332f2b1e7360dc118d95bc6f15bcb6830b73a8aa.tar.bz2 |
dm: return void from __send_empty_flush
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index f8df6e3bcdc5..df7664f3028c 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -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; @@ -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, @@ -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; } |