aboutsummaryrefslogtreecommitdiffstats
path: root/mm/filemap.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2007-10-16 04:24:54 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-16 12:42:54 -0400
commit4b49643fbb3fa8bf4910f82be02d45e94e8972a4 (patch)
treeee3bc7881a1e0b71fa093254bb725ad467d8ef72 /mm/filemap.h
parent41cb8ac025dbbf6782eae10d231e7e2336ad3724 (diff)
Revert "[PATCH] generic_file_buffered_write(): handle zero-length iovec segments"
This reverts commit 81b0c8713385ce1b1b9058e916edcf9561ad76d6, which was a bugfix against 6527c2bdf1f833cc18e8f42bd97973d583e4aa83 ("[PATCH] generic_file_buffered_write(): deadlock on vectored write"), which we also revert. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Nick Piggin <npiggin@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/filemap.h')
-rw-r--r--mm/filemap.h4
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}