diff options
Diffstat (limited to 'drivers/md/dm-stripe.c')
-rw-r--r-- | drivers/md/dm-stripe.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/md/dm-stripe.c b/drivers/md/dm-stripe.c index ab50d7c4377f..b5e892149c54 100644 --- a/drivers/md/dm-stripe.c +++ b/drivers/md/dm-stripe.c | |||
@@ -351,25 +351,6 @@ static size_t stripe_dax_copy_from_iter(struct dm_target *ti, pgoff_t pgoff, | |||
351 | return dax_copy_from_iter(dax_dev, pgoff, addr, bytes, i); | 351 | return dax_copy_from_iter(dax_dev, pgoff, addr, bytes, i); |
352 | } | 352 | } |
353 | 353 | ||
354 | static void stripe_dax_flush(struct dm_target *ti, pgoff_t pgoff, void *addr, | ||
355 | size_t size) | ||
356 | { | ||
357 | sector_t dev_sector, sector = pgoff * PAGE_SECTORS; | ||
358 | struct stripe_c *sc = ti->private; | ||
359 | struct dax_device *dax_dev; | ||
360 | struct block_device *bdev; | ||
361 | uint32_t stripe; | ||
362 | |||
363 | stripe_map_sector(sc, sector, &stripe, &dev_sector); | ||
364 | dev_sector += sc->stripe[stripe].physical_start; | ||
365 | dax_dev = sc->stripe[stripe].dev->dax_dev; | ||
366 | bdev = sc->stripe[stripe].dev->bdev; | ||
367 | |||
368 | if (bdev_dax_pgoff(bdev, dev_sector, ALIGN(size, PAGE_SIZE), &pgoff)) | ||
369 | return; | ||
370 | dax_flush(dax_dev, pgoff, addr, size); | ||
371 | } | ||
372 | |||
373 | /* | 354 | /* |
374 | * Stripe status: | 355 | * Stripe status: |
375 | * | 356 | * |
@@ -489,7 +470,6 @@ static struct target_type stripe_target = { | |||
489 | .io_hints = stripe_io_hints, | 470 | .io_hints = stripe_io_hints, |
490 | .direct_access = stripe_dax_direct_access, | 471 | .direct_access = stripe_dax_direct_access, |
491 | .dax_copy_from_iter = stripe_dax_copy_from_iter, | 472 | .dax_copy_from_iter = stripe_dax_copy_from_iter, |
492 | .dax_flush = stripe_dax_flush, | ||
493 | }; | 473 | }; |
494 | 474 | ||
495 | int __init dm_stripe_init(void) | 475 | int __init dm_stripe_init(void) |