summaryrefslogtreecommitdiffstats
path: root/fs/buffer.c
diff options
context:
space:
mode:
authorMing Lei <ming.lei@redhat.com>2017-12-18 20:22:05 +0800
committerJens Axboe <axboe@kernel.dk>2018-01-06 09:18:00 -0700
commitc45a8f2def865e0d75b45618aef2963e15725cc4 (patch)
tree097e8cd75cedcb1455203bb58e7152c21da1809a /fs/buffer.c
parent263663cd3c4fbfc40cb7504c4be2dadbc0992cc1 (diff)
downloadlinux-stable-c45a8f2def865e0d75b45618aef2963e15725cc4.tar.gz
linux-stable-c45a8f2def865e0d75b45618aef2963e15725cc4.tar.bz2
linux-stable-c45a8f2def865e0d75b45618aef2963e15725cc4.zip
fs: convert to bio_last_bvec_all()
This patch converts 3 users to bio_last_bvec_all(), so that we can go ahead and convert to multipage bvec. Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/buffer.c')
-rw-r--r--fs/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/buffer.c b/fs/buffer.c
index 0736a6a2e2f0..8b26295a56fe 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -3014,7 +3014,7 @@ static void end_bio_bh_io_sync(struct bio *bio)
void guard_bio_eod(int op, struct bio *bio)
{
sector_t maxsector;
- struct bio_vec *bvec = &bio->bi_io_vec[bio->bi_vcnt - 1];
+ struct bio_vec *bvec = bio_last_bvec_all(bio);
unsigned truncated_bytes;
struct hd_struct *part;