]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iov_iter: hide iovec details behind ops function pointers
authorZach Brown <zach.brown@oracle.com>
Fri, 3 Sep 2010 20:52:28 +0000 (13:52 -0700)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Fri, 13 Jan 2012 00:08:30 +0000 (18:08 -0600)
commit14bf8c9e5ebc41f0bc460cefbf9dd18764e4baf9
treeac1617f02fbaee9bdff74e0256e0b745c511de2c
parentff2a7b46cdebc0f750867fba5682022554dcab5b
iov_iter: hide iovec details behind ops function pointers

This moves the current iov_iter functions behind an ops struct of function
pointers.  The current iov_iter functions all work with memory which is
specified by iovec arrays of user space pointers.

This patch is part of a series that lets us specify memory with bio_vec arrays
of page pointers.  By moving to an iov_iter operation struct we can add that
support in later patches in this series by adding another set of function
pointers.

I only came to this after having initialy tried to teach the current iov_iter
functions about bio_vecs by introducing conditional branches that dealt with
bio_vecs in all the functions.  It wasn't pretty.  This approach seems to be
the lesser evil.

Signed-off-by: Zach Brown <zach.brown@oracle.com>
include/linux/fs.h
mm/iov-iter.c