get rid of pointless iov_length() in ->direct_IO()

all callers have iov_length(iter->iov, iter->nr_segs) == iov_iter_count(iter)

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro
2014-03-04 22:38:00 -05:00
parent 16b1f05d7f
commit a6cbcd4a4a
18 changed files with 32 additions and 30 deletions

View File

@@ -1458,7 +1458,7 @@ xfs_vm_direct_IO(
ssize_t ret;
if (rw & WRITE) {
size_t size = iov_length(iter->iov, iter->nr_segs);
size_t size = iov_iter_count(iter);
/*
* We cannot preallocate a size update transaction here as we