diff options
author | Ming Lei <ming.lei@redhat.com> | 2017-12-18 13:22:12 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-01-06 17:18:00 +0100 |
commit | c16a8ac3c021f454550f851f5e0772b29a5125b0 (patch) | |
tree | 74e6e1b92ce7244ff5a052a7189b9874981164a0 /block | |
parent | btrfs: avoid access to .bi_vcnt directly (diff) | |
download | linux-c16a8ac3c021f454550f851f5e0772b29a5125b0.tar.xz linux-c16a8ac3c021f454550f851f5e0772b29a5125b0.zip |
btrfs: avoid accessing bvec table directly for a cloned bio
Commit 17347cec15f919901c90(Btrfs: change how we iterate bios in endio)
mentioned that for dio the submitted bio may be fast cloned, we
can't access the bvec table directly for a cloned bio, so use
bio_get_first_bvec() to retrieve the 1st bvec.
Cc: Chris Mason <clm@fb.com>
Cc: Josef Bacik <jbacik@fb.com>
Cc: David Sterba <dsterba@suse.com>
Cc: linux-btrfs@vger.kernel.org
Cc: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Acked: David Sterba <dsterba@suse.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions