diff options
author | Ming Lei <[email protected]> | 2017-12-18 20:22:11 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2018-01-06 09:18:00 -0700 |
commit | a0b60d725e54f1caba4f5dc0dfef68040bcf9a8e (patch) | |
tree | 0a23c69b7926356efb1ac5d532655e9aa8953e33 /fs/btrfs/inode.c | |
parent | 25d8be77e19224d8f21b363d77b5283c5dc21a57 (diff) |
btrfs: avoid access to .bi_vcnt directly
BTRFS uses bio->bi_vcnt to figure out page numbers, this approach is no
longer valid once we start enabling multipage bvecs.
correct once we start to enable multipage bvec.
Use bio_nr_pages() to do that instead.
Cc: Chris Mason <[email protected]>
Cc: Josef Bacik <[email protected]>
Cc: David Sterba <[email protected]>
Cc: [email protected]
Acked-by: David Sterba <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'fs/btrfs/inode.c')
0 files changed, 0 insertions, 0 deletions