diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-07-04 03:48:25 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:23 -0400 |
commit | 0fd7263e2e55d43317e85e9f7a4e67de9fa0ec90 (patch) | |
tree | 90c3038eab119599458280cfc2a85aadf1261fbd /fs/bcachefs/checksum.c | |
parent | 885678f68dd1bf9638087ae8b22051b464f5ec05 (diff) | |
download | linux-0fd7263e2e55d43317e85e9f7a4e67de9fa0ec90.tar.gz linux-0fd7263e2e55d43317e85e9f7a4e67de9fa0ec90.tar.bz2 linux-0fd7263e2e55d43317e85e9f7a4e67de9fa0ec90.zip |
bcachefs: kill bio_for_each_contig_segment()
With multipage bvecs it's not needed anymore
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/checksum.c')
-rw-r--r-- | fs/bcachefs/checksum.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/checksum.c b/fs/bcachefs/checksum.c index 0ab6ce1b9e75..2e1dfdc68e15 100644 --- a/fs/bcachefs/checksum.c +++ b/fs/bcachefs/checksum.c @@ -200,7 +200,7 @@ static struct bch_csum __bch2_checksum_bio(struct bch_fs *c, unsigned type, kunmap_atomic(p); } #else - __bio_for_each_contig_segment(bv, bio, *iter, *iter) + __bio_for_each_bvec(bv, bio, *iter, *iter) crc = bch2_checksum_update(type, crc, page_address(bv.bv_page) + bv.bv_offset, bv.bv_len); @@ -225,7 +225,7 @@ static struct bch_csum __bch2_checksum_bio(struct bch_fs *c, unsigned type, kunmap_atomic(p); } #else - __bio_for_each_contig_segment(bv, bio, *iter, *iter) + __bio_for_each_bvec(bv, bio, *iter, *iter) crypto_shash_update(desc, page_address(bv.bv_page) + bv.bv_offset, bv.bv_len); |