Messages in this thread | | | Date | Fri, 24 Apr 2015 00:06:11 -0700 | From | Christoph Hellwig <> | Subject | Re: [PATCH v3 1/4] block: refactor iov_count_pages() from bio_{copy,map}_user_iov() |
| |
On Thu, Apr 23, 2015 at 04:04:32PM -0700, Ming Lin wrote: > From: Kent Overstreet <kent.overstreet@gmail.com> > > Refactor the common part in bio_copy_user_iov() and > __bio_map_user_iov() to separate out iov_count_pages() into the general > iov_iter API, instead of open coding iov iterations as done previously. > > This commit should contain only literal replacements, without > functional changes.
Weve already got a iov_iter_npages and iov_iter_alignment, the SG_IO code should probably be switched to those instead.
| |