Re: [PATCH v3 1/4] block: refactor iov_count_pages() from bio_{copy,map}_user_iov()

2015-04-24 Thread Christoph Hellwig
On Thu, Apr 23, 2015 at 04:04:32PM -0700, Ming Lin wrote: > From: Kent Overstreet > > 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 c

[PATCH v3 1/4] block: refactor iov_count_pages() from bio_{copy,map}_user_iov()

2015-04-23 Thread Ming Lin
From: Kent Overstreet 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 chang