History

block: rename bio_iov_iter_get_pages_aligned to bio_iov_iter_get_pages

Now that the bio_iov_iter_get_pages is free again, use it instead of the more complicated now. Also drop the unused export.

Christoph Hellwig committed 1 year ago

Commit 82dd5d71 parent 1ed06c84 files · +5 −6Browse files

Showing the changes to include/linux (2 of 4 files). Show all

Unified · Split

2 files
  1. include/linux/bio.h +1 −1
  2. include/linux/blkdev.h +1 −1
include/linux/bio.h+1−1
@@ -446,7 +446,7 @@ int submit_bio_wait(struct bio *bio); · 445 unmodified lines
446int bdev_rw_virt(struct block_device *bdev, sector_t sector, void *data,446int bdev_rw_virt(struct block_device *bdev, sector_t sector, void *data,
447 size_t len, enum req_op op);447 size_t len, enum req_op op);
448 448
449int bio_iov_iter_get_pages_aligned(struct bio *bio, struct iov_iter *iter,449int bio_iov_iter_get_pages(struct bio *bio, struct iov_iter *iter,
450 unsigned len_align_mask);450 unsigned len_align_mask);
451 451
452void bio_iov_bvec_set(struct bio *bio, const struct iov_iter *iter);452void bio_iov_bvec_set(struct bio *bio, const struct iov_iter *iter);
include/linux/blkdev.h+1−1
@@ -1876,7 +1876,7 @@ static inline int bio_split_rw_at(struct bio *bio, · 1875 unmodified lines
1876static inline int bio_iov_iter_get_bdev_pages(struct bio *bio,1876static inline int bio_iov_iter_get_bdev_pages(struct bio *bio,
1877 struct iov_iter *iter, struct block_device *bdev)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 bdev_logical_block_size(bdev) - 1);1880 bdev_logical_block_size(bdev) - 1);
1881}1881}
1882 1882

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t