projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SUNRPC: Move TCP receive state variables into private data structure
[powerpc.git]
/
mm
/
filemap.h
diff --git
a/mm/filemap.h
b/mm/filemap.h
index
536979f
..
c2bff04
100644
(file)
--- a/
mm/filemap.h
+++ b/
mm/filemap.h
@@
-12,7
+12,6
@@
#include <linux/mm.h>
#include <linux/highmem.h>
#include <linux/uio.h>
#include <linux/mm.h>
#include <linux/highmem.h>
#include <linux/uio.h>
-#include <linux/config.h>
#include <linux/uaccess.h>
size_t
#include <linux/uaccess.h>
size_t
@@
-88,7
+87,7
@@
filemap_set_next_iovec(const struct iovec **iovp, size_t *basep, size_t bytes)
const struct iovec *iov = *iovp;
size_t base = *basep;
const struct iovec *iov = *iovp;
size_t base = *basep;
-
while (bytes)
{
+
do
{
int copy = min(bytes, iov->iov_len - base);
bytes -= copy;
int copy = min(bytes, iov->iov_len - base);
bytes -= copy;
@@
-97,7
+96,7
@@
filemap_set_next_iovec(const struct iovec **iovp, size_t *basep, size_t bytes)
iov++;
base = 0;
}
iov++;
base = 0;
}
- }
+ }
while (bytes);
*iovp = iov;
*basep = base;
}
*iovp = iov;
*basep = base;
}