Switch the only caller to bio_iov_iter_get_pages, and explain why it does not have any alignment requirements.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -449,11 +449,6 @@ int bdev_rw_virt(struct block_device *bdev, sector_t sector, void *data, · 448 unmodified lines | ||
| 449 | 449 | int bio_iov_iter_get_pages_aligned(struct bio *bio, struct iov_iter *iter, |
| 450 | 450 | unsigned len_align_mask); |
| 451 | 451 | |
| 452 | −static inline int bio_iov_iter_get_pages(struct bio *bio, struct iov_iter *iter) | |
| 453 | −{ | |
| 454 | − return bio_iov_iter_get_pages_aligned(bio, iter, 0); | |
| 455 | −} | |
| 456 | − | |
| 457 | 452 | void bio_iov_bvec_set(struct bio *bio, const struct iov_iter *iter); |
| 458 | 453 | void __bio_release_pages(struct bio *bio, bool mark_dirty); |
| 459 | 454 | extern void bio_set_pages_dirty(struct bio *bio); |