git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git]
/
mm
/
filemap.h
diff --git
a/mm/filemap.h
b/mm/filemap.h
index
13793ba
..
efd0142
100644
(file)
--- a/
mm/filemap.h
+++ b/
mm/filemap.h
@@
-78,7
+78,7
@@
filemap_set_next_iovec(const struct iovec **iovp, size_t *basep, size_t bytes)
const struct iovec *iov = *iovp;
size_t base = *basep;
-
while (bytes)
{
+
do
{
int copy = min(bytes, iov->iov_len - base);
bytes -= copy;
@@
-87,7
+87,7
@@
filemap_set_next_iovec(const struct iovec **iovp, size_t *basep, size_t bytes)
iov++;
base = 0;
}
- }
+ }
while (bytes);
*iovp = iov;
*basep = base;
}