lkml.org 
[lkml]   [2015]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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.


\
 
 \ /
  Last update: 2015-04-24 09:21    [W:0.146 / U:2.740 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site