On Thu, Apr 23, 2015 at 04:04:32PM -0700, Ming Lin wrote: > From: Kent Overstreet <kent.overstr...@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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/