History

mm/sparc64: use general page fault accounting

Use the general page fault accounting by passing regs into handle_mm_fault(). It naturally solve the issue of multiple page fault accounting when page fault retry happened.

Peter Xu committed 6 years ago

Commit f08147d1 parent 56e10e61 file · +1 −10Browse files

Unified · Split

arch/sparc/mm/fault_64.c+1−10
@@ -422,7 +422,7 @@ good_area: · 421 unmodified lines
422422 goto bad_area;
423423 }
424424
425− fault = handle_mm_fault(vma, address, flags, NULL);
425+ fault = handle_mm_fault(vma, address, flags, regs);
426426
427427 if (fault_signal_pending(fault, regs))
428428 goto exit_exception;
@@ -438,15 +438,6 @@ good_area: · 9 unmodified lines
438438 }
439439
440440 if (flags & FAULT_FLAG_ALLOW_RETRY) {
441− if (fault & VM_FAULT_MAJOR) {
442− current->maj_flt++;
443− perf_sw_event(PERF_COUNT_SW_PAGE_FAULTS_MAJ,
444− 1, regs, address);
445− } else {
446− current->min_flt++;
447− perf_sw_event(PERF_COUNT_SW_PAGE_FAULTS_MIN,
448− 1, regs, address);
449− }
450441 if (fault & VM_FAULT_RETRY) {
451442 flags |= FAULT_FLAG_TRIED;
452443

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t