aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorBalbir Singh <balbir@linux.vnet.ibm.com>2007-11-14 20:00:33 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-11-14 21:45:44 -0500
commit20a1022d4ac5c53f0956006fd9e30cf4846d5e58 (patch)
tree460b50d2e58b23c55d5984e1a530ee76a312dda9 /mm
parent9c8d6381dc107dbc2bfdbfdcaefe0d42e5b5b362 (diff)
Swap delay accounting, include lock_page() delays
The delay incurred in lock_page() should also be accounted in swap delay accounting Reported-by: Nick Piggin <nickpiggin@yahoo.com.au> Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c
index 7b0403bfc97f..4bf0b6d0eb2a 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -2084,9 +2084,9 @@ static int do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma,
2084 count_vm_event(PGMAJFAULT); 2084 count_vm_event(PGMAJFAULT);
2085 } 2085 }
2086 2086
2087 delayacct_clear_flag(DELAYACCT_PF_SWAPIN);
2088 mark_page_accessed(page); 2087 mark_page_accessed(page);
2089 lock_page(page); 2088 lock_page(page);
2089 delayacct_clear_flag(DELAYACCT_PF_SWAPIN);
2090 2090
2091 /* 2091 /*
2092 * Back out if somebody else already faulted in this pte. 2092 * Back out if somebody else already faulted in this pte.