Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 622
b: refs/heads/master
c: f021e92
h: refs/heads/master
v: v3
  • Loading branch information
akpm@osdl.org authored and Linus Torvalds committed May 1, 2005
1 parent de7d346 commit 0421616
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 69aa3f71580990f39e387d96ed1001d2f5fb04b1
refs/heads/master: f021e9210185b46e41ec3a0e78ec1621e168eacb
6 changes: 4 additions & 2 deletions trunk/mm/filemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1949,7 +1949,7 @@ generic_file_buffered_write(struct kiocb *iocb, const struct iovec *iov,
buf = iov->iov_base + written;
else {
filemap_set_next_iovec(&cur_iov, &iov_base, written);
buf = iov->iov_base + iov_base;
buf = cur_iov->iov_base + iov_base;
}

do {
Expand Down Expand Up @@ -2007,9 +2007,11 @@ generic_file_buffered_write(struct kiocb *iocb, const struct iovec *iov,
count -= status;
pos += status;
buf += status;
if (unlikely(nr_segs > 1))
if (unlikely(nr_segs > 1)) {
filemap_set_next_iovec(&cur_iov,
&iov_base, status);
buf = cur_iov->iov_base + iov_base;
}
}
}
if (unlikely(copied != bytes))
Expand Down

0 comments on commit 0421616

Please sign in to comment.