]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/xfs/xfs_aops.c
block: Abstract out bvec iterator
[mirror_ubuntu-bionic-kernel.git] / fs / xfs / xfs_aops.c
index 71c8c9d2b8826a0ed22d886fb3327d2ff0784fc3..1b19b9cd692ad8ff4d73259f7353b1e6a86477ad 100644 (file)
@@ -407,7 +407,7 @@ xfs_alloc_ioend_bio(
        struct bio              *bio = bio_alloc(GFP_NOIO, nvecs);
 
        ASSERT(bio->bi_private == NULL);
-       bio->bi_sector = bh->b_blocknr * (bh->b_size >> 9);
+       bio->bi_iter.bi_sector = bh->b_blocknr * (bh->b_size >> 9);
        bio->bi_bdev = bh->b_bdev;
        return bio;
 }