Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69623
b: refs/heads/master
c: 5fe1723
h: refs/heads/master
i:
  69621: b7138d4
  69619: 8295df0
  69615: 0e41831
v: v3
  • Loading branch information
Nick Piggin authored and Linus Torvalds committed Oct 16, 2007
1 parent 796ff12 commit 462d8a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ae37461c70bc8c8416cad1bab13a9898ed030aa1
refs/heads/master: 5fe172370687e03cc6ba8dca990b75db18ff9bb3
2 changes: 2 additions & 0 deletions trunk/mm/filemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1878,13 +1878,15 @@ generic_file_buffered_write(struct kiocb *iocb, const struct iovec *iov,
if (maxlen > bytes)
maxlen = bytes;

#ifndef CONFIG_DEBUG_VM
/*
* Bring in the user page that we will copy from _first_.
* Otherwise there's a nasty deadlock on copying from the
* same page as we're writing to, without it being marked
* up-to-date.
*/
fault_in_pages_readable(buf, maxlen);
#endif

page = __grab_cache_page(mapping,index,&cached_page,&lru_pvec);
if (!page) {
Expand Down

0 comments on commit 462d8a6

Please sign in to comment.