Now that the bio_iov_iter_get_pages is free again, use it instead of the more complicated now. Also drop the unused export.
Showing the changes to include/linux (2 of 4 files). Show all
Unified · Split
| @@ -446,7 +446,7 @@ int submit_bio_wait(struct bio *bio); · 445 unmodified lines | ||
| 446 | 446 | int bdev_rw_virt(struct block_device *bdev, sector_t sector, void *data, |
| 447 | 447 | size_t len, enum req_op op); |
| 448 | 448 | |
| 449 | −int bio_iov_iter_get_pages_aligned(struct bio *bio, struct iov_iter *iter, | |
| 449 | +int bio_iov_iter_get_pages(struct bio *bio, struct iov_iter *iter, | |
| 450 | 450 | unsigned len_align_mask); |
| 451 | 451 | |
| 452 | 452 | void bio_iov_bvec_set(struct bio *bio, const struct iov_iter *iter); |
| @@ -1876,7 +1876,7 @@ static inline int bio_split_rw_at(struct bio *bio, · 1875 unmodified lines | ||
| 1876 | 1876 | static inline int bio_iov_iter_get_bdev_pages(struct bio *bio, |
| 1877 | 1877 | struct iov_iter *iter, struct block_device *bdev) |
| 1878 | 1878 | { |
| 1879 | − return bio_iov_iter_get_pages_aligned(bio, iter, | |
| 1879 | + return bio_iov_iter_get_pages(bio, iter, | |
| 1880 | 1880 | bdev_logical_block_size(bdev) - 1); |
| 1881 | 1881 | } |
| 1882 | 1882 | |