aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memory.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2006-12-07 16:35:17 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2006-12-07 16:35:17 -0500
commit21b4e736922f546e0f1aa7b9d6c442f309a2444a (patch)
treee1be8645297f8ebe87445251743ebcc52081a20d /mm/memory.c
parent34161db6b14d984fb9b06c735b7b42f8803f6851 (diff)
parent68380b581383c028830f79ec2670f4a193854aa6 (diff)
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/ into merge_linus
Diffstat (limited to 'mm/memory.c')
-rw-r--r--mm/memory.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/memory.c b/mm/memory.c
index 156861fcac43..4198df0dff1c 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -1902,7 +1902,6 @@ int vmtruncate_range(struct inode *inode, loff_t offset, loff_t end)
1902 1902
1903 return 0; 1903 return 0;
1904} 1904}
1905EXPORT_UNUSED_SYMBOL(vmtruncate_range); /* June 2006 */
1906 1905
1907/** 1906/**
1908 * swapin_readahead - swap in pages in hope we need them soon 1907 * swapin_readahead - swap in pages in hope we need them soon
@@ -1991,6 +1990,7 @@ static int do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma,
1991 delayacct_set_flag(DELAYACCT_PF_SWAPIN); 1990 delayacct_set_flag(DELAYACCT_PF_SWAPIN);
1992 page = lookup_swap_cache(entry); 1991 page = lookup_swap_cache(entry);
1993 if (!page) { 1992 if (!page) {
1993 grab_swap_token(); /* Contend for token _before_ read-in */
1994 swapin_readahead(entry, address, vma); 1994 swapin_readahead(entry, address, vma);
1995 page = read_swap_cache_async(entry, vma, address); 1995 page = read_swap_cache_async(entry, vma, address);
1996 if (!page) { 1996 if (!page) {
@@ -2008,7 +2008,6 @@ static int do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma,
2008 /* Had to read the page from swap area: Major fault */ 2008 /* Had to read the page from swap area: Major fault */
2009 ret = VM_FAULT_MAJOR; 2009 ret = VM_FAULT_MAJOR;
2010 count_vm_event(PGMAJFAULT); 2010 count_vm_event(PGMAJFAULT);
2011 grab_swap_token();
2012 } 2011 }
2013 2012
2014 delayacct_clear_flag(DELAYACCT_PF_SWAPIN); 2013 delayacct_clear_flag(DELAYACCT_PF_SWAPIN);