diff options
Diffstat (limited to 'mm/filemap.h')
-rw-r--r-- | mm/filemap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/filemap.h b/mm/filemap.h index c2bff04c84ed..a1e10a232e92 100644 --- a/mm/filemap.h +++ b/mm/filemap.h | |||
@@ -87,7 +87,7 @@ filemap_set_next_iovec(const struct iovec **iovp, size_t *basep, size_t bytes) | |||
87 | const struct iovec *iov = *iovp; | 87 | const struct iovec *iov = *iovp; |
88 | size_t base = *basep; | 88 | size_t base = *basep; |
89 | 89 | ||
90 | do { | 90 | while (bytes) { |
91 | int copy = min(bytes, iov->iov_len - base); | 91 | int copy = min(bytes, iov->iov_len - base); |
92 | 92 | ||
93 | bytes -= copy; | 93 | bytes -= copy; |
@@ -96,7 +96,7 @@ filemap_set_next_iovec(const struct iovec **iovp, size_t *basep, size_t bytes) | |||
96 | iov++; | 96 | iov++; |
97 | base = 0; | 97 | base = 0; |
98 | } | 98 | } |
99 | } while (bytes); | 99 | } |
100 | *iovp = iov; | 100 | *iovp = iov; |
101 | *basep = base; | 101 | *basep = base; |
102 | } | 102 | } |