Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96734
b: refs/heads/master
c: 3ef0f72
h: refs/heads/master
v: v3
  • Loading branch information
Miklos Szeredi authored and Linus Torvalds committed May 15, 2008
1 parent 987470e commit 1a6cf44
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 3b73a223661ed137c5d3d2635f954382e94f5a43
refs/heads/master: 3ef0f720e47e895b613b0305eb0a483e3ec11f23
5 changes: 5 additions & 0 deletions trunk/mm/filemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1461,6 +1461,11 @@ int filemap_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
*/
ClearPageError(page);
error = mapping->a_ops->readpage(file, page);
if (!error) {
wait_on_page_locked(page);
if (!PageUptodate(page))
error = -EIO;
}
page_cache_release(page);

if (!error || error == AOP_TRUNCATED_PAGE)
Expand Down

0 comments on commit 1a6cf44

Please sign in to comment.