]> git.karo-electronics.de Git - karo-tx-linux.git/commit
give ->direct_IO() a copy of iov_iter
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 10 Mar 2014 18:08:45 +0000 (14:08 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 23 Apr 2014 14:20:34 +0000 (10:20 -0400)
commitbf7b4e0ee881cd951c7b683f406a4ac252a24e98
tree093c50a16896a4f41b6ebc9acbd6dc37756a4509
parent0eff84022e9c9e9ccac35cb7ed2eb93a445d136b
give ->direct_IO() a copy of iov_iter

the thing is, we want to advance what's given to ->direct_IO() as we
are forming the request; however, the callers care about the amount
of data actually transferred, not the amount we tried to transfer.
It's more convenient to allow ->direct_IO() instances do use
iov_iter_advance() on the copy of iov_iter, leaving the actual
advancing of the original to caller.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
mm/filemap.c