File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs)
109
109
* make sure we exit gracefully rather than endlessly redo
110
110
* the fault.
111
111
*/
112
- fault = handle_mm_fault (vma , addr , flags , NULL );
112
+ fault = handle_mm_fault (vma , addr , flags , regs );
113
113
114
114
/*
115
115
* If we need to retry but a fatal signal is pending, handle the
@@ -127,21 +127,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs)
127
127
BUG ();
128
128
}
129
129
130
- /*
131
- * Major/minor page fault accounting is only done on the
132
- * initial attempt. If we go through a retry, it is extremely
133
- * likely that the page will be found in page cache at that point.
134
- */
135
130
if (flags & FAULT_FLAG_ALLOW_RETRY ) {
136
- if (fault & VM_FAULT_MAJOR ) {
137
- tsk -> maj_flt ++ ;
138
- perf_sw_event (PERF_COUNT_SW_PAGE_FAULTS_MAJ ,
139
- 1 , regs , addr );
140
- } else {
141
- tsk -> min_flt ++ ;
142
- perf_sw_event (PERF_COUNT_SW_PAGE_FAULTS_MIN ,
143
- 1 , regs , addr );
144
- }
145
131
if (fault & VM_FAULT_RETRY ) {
146
132
flags |= FAULT_FLAG_TRIED ;
147
133
You can’t perform that action at this time.
0 commit comments