Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54181
b: refs/heads/master
c: a812771
h: refs/heads/master
i:
  54179: 6a9e9d0
v: v3
  • Loading branch information
Nick Piggin authored and Linus Torvalds committed May 7, 2007
1 parent 68f50c2 commit d5f512d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 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: 14e072984179d3d421bf9ab75cc67e0961742841
refs/heads/master: a8127717cb24be7b8827a8d9e0ddbfde6b392146
24 changes: 0 additions & 24 deletions trunk/mm/filemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1446,30 +1446,6 @@ struct page *filemap_nopage(struct vm_area_struct *area,
majmin = VM_FAULT_MAJOR;
count_vm_event(PGMAJFAULT);
}
lock_page(page);

/* Did it get unhashed while we waited for it? */
if (!page->mapping) {
unlock_page(page);
page_cache_release(page);
goto retry_all;
}

/* Did somebody else get it up-to-date? */
if (PageUptodate(page)) {
unlock_page(page);
goto success;
}

error = mapping->a_ops->readpage(file, page);
if (!error) {
wait_on_page_locked(page);
if (PageUptodate(page))
goto success;
} else if (error == AOP_TRUNCATED_PAGE) {
page_cache_release(page);
goto retry_find;
}

/*
* Umm, take care of errors if the page isn't up-to-date.
Expand Down

0 comments on commit d5f512d

Please sign in to comment.