]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
dm io: use bvec iterator helpers to implement .get_page and .next_page
authorMing Lei <tom.leiming@gmail.com>
Fri, 11 Nov 2016 12:05:35 +0000 (20:05 +0800)
committerMike Snitzer <snitzer@redhat.com>
Mon, 21 Nov 2016 14:51:57 +0000 (09:51 -0500)
commitcacc7b0556739bd6018252731c0237c071ba51da
tree8c5cb13d6cb60a9f79616f3887318b9743202c56
parent4f9c74c6043891d415730bcb153c579be35c352f
dm io: use bvec iterator helpers to implement .get_page and .next_page

Firstly we have mature bvec/bio iterator helper for iterate each
page in one bio, not necessary to reinvent a wheel to do that.

Secondly the coming multipage bvecs requires this patch.

Also add comments about the direct access to bvec table.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-io.c