Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42650
b: refs/heads/master
c: 098fe65
h: refs/heads/master
v: v3
  • Loading branch information
Ashwin Chaugule authored and Linus Torvalds committed Dec 7, 2006
1 parent c7ce5a9 commit b9ef0f9
Show file tree
Hide file tree
Showing 3 changed files with 2 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: cd54e7e54318d333227b13186f9a464bf1f68d27
refs/heads/master: 098fe651f7e9d759d1117c78c1a642b9b3945922
1 change: 0 additions & 1 deletion trunk/mm/filemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1445,7 +1445,6 @@ struct page *filemap_nopage(struct vm_area_struct *area,
* effect.
*/
error = page_cache_read(file, pgoff);
grab_swap_token();

/*
* The page we want has now been added to the page cache.
Expand Down
2 changes: 1 addition & 1 deletion trunk/mm/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -1991,6 +1991,7 @@ static int do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma,
delayacct_set_flag(DELAYACCT_PF_SWAPIN);
page = lookup_swap_cache(entry);
if (!page) {
grab_swap_token(); /* Contend for token _before_ read-in */
swapin_readahead(entry, address, vma);
page = read_swap_cache_async(entry, vma, address);
if (!page) {
Expand All @@ -2008,7 +2009,6 @@ static int do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma,
/* Had to read the page from swap area: Major fault */
ret = VM_FAULT_MAJOR;
count_vm_event(PGMAJFAULT);
grab_swap_token();
}

delayacct_clear_flag(DELAYACCT_PF_SWAPIN);
Expand Down

0 comments on commit b9ef0f9

Please sign in to comment.