Since we removed the last user of dio_end_io(), remove the helper function dio_end_io().
Unified · Split
| @@ -386,25 +386,6 @@ static void dio_bio_end_io(struct bio *bio) · 385 unmodified lines | |||
| 386 | spin_unlock_irqrestore(&dio->bio_lock, flags); | 386 | spin_unlock_irqrestore(&dio->bio_lock, flags); |
| 387 | } | 387 | } |
| 388 | 388 | ||
| 389 | /** | ||
| 390 | * dio_end_io - handle the end io action for the given bio | ||
| 391 | * @bio: The direct io bio thats being completed | ||
| 392 | * | ||
| 393 | * This is meant to be called by any filesystem that uses their own dio_submit_t | ||
| 394 | * so that the DIO specific endio actions are dealt with after the filesystem | ||
| 395 | * has done it's completion work. | ||
| 396 | */ | ||
| 397 | void dio_end_io(struct bio *bio) | ||
| 398 | { | ||
| 399 | struct dio *dio = bio->bi_private; | ||
| 400 | |||
| 401 | if (dio->is_async) | ||
| 402 | dio_bio_end_aio(bio); | ||
| 403 | else | ||
| 404 | dio_bio_end_io(bio); | ||
| 405 | } | ||
| 406 | EXPORT_SYMBOL_GPL(dio_end_io); | ||
| 407 | |||
| 408 | static inline void | 389 | static inline void |
| 409 | dio_bio_alloc(struct dio *dio, struct dio_submit *sdio, | 390 | dio_bio_alloc(struct dio *dio, struct dio_submit *sdio, |
| 410 | struct block_device *bdev, | 391 | struct block_device *bdev, |
| @@ -3187,8 +3187,6 @@ enum { · 3186 unmodified lines | |||
| 3187 | DIO_SKIP_HOLES = 0x02, | 3187 | DIO_SKIP_HOLES = 0x02, |
| 3188 | }; | 3188 | }; |
| 3189 | 3189 | ||
| 3190 | void dio_end_io(struct bio *bio); | ||
| 3191 | |||
| 3192 | ssize_t __blockdev_direct_IO(struct kiocb *iocb, struct inode *inode, | 3190 | ssize_t __blockdev_direct_IO(struct kiocb *iocb, struct inode *inode, |
| 3193 | struct block_device *bdev, struct iov_iter *iter, | 3191 | struct block_device *bdev, struct iov_iter *iter, |
| 3194 | get_block_t get_block, | 3192 | get_block_t get_block, |