diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2014-06-18 20:34:33 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-08-07 14:40:11 -0400 |
commit | c7f3888ad7f0932a87fb76e6e4edff2a90cc7920 (patch) | |
tree | d108b0518699032b366b78fe461be3fc0fa307d2 /fs/direct-io.c | |
parent | 49c7dd287adffc972e6dd6cf7011d63c7c5c2e10 (diff) | |
download | lwn-c7f3888ad7f0932a87fb76e6e4edff2a90cc7920.tar.gz lwn-c7f3888ad7f0932a87fb76e6e4edff2a90cc7920.zip |
switch iov_iter_get_pages() to passing maximal number of pages
... instead of maximal size.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/direct-io.c')
-rw-r--r-- | fs/direct-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/direct-io.c b/fs/direct-io.c index 17e39b047de5..c3116404ab49 100644 --- a/fs/direct-io.c +++ b/fs/direct-io.c @@ -158,7 +158,7 @@ static inline int dio_refill_pages(struct dio *dio, struct dio_submit *sdio) { ssize_t ret; - ret = iov_iter_get_pages(sdio->iter, dio->pages, DIO_PAGES * PAGE_SIZE, + ret = iov_iter_get_pages(sdio->iter, dio->pages, DIO_PAGES, &sdio->from); if (ret < 0 && sdio->blocks_available && (dio->rw & WRITE)) { |