mm: remove VM_FAULT_MINOR
authorJan Kara <jack@suse.cz>
Thu, 17 Mar 2016 21:19:55 +0000 (14:19 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 17 Mar 2016 22:09:34 +0000 (15:09 -0700)
The define has a comment from Nick Piggin from 2007:

 /* For backwards compat. Remove me quickly. */

I guess 9 years should not be too hurried sense of 'quickly' even for
kernel measures.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/arm/mm/fault.c
arch/arm64/mm/fault.c
arch/unicore32/mm/fault.c
arch/xtensa/mm/fault.c
include/linux/mm.h

index daafcf121ce082aa0a0fbb43be3e3712b2942f3e..ad5841856007a4ee0f46b6c4c40dcdfbcbf0aac1 100644 (file)
@@ -346,7 +346,7 @@ retry:
        up_read(&mm->mmap_sem);
 
        /*
-        * Handle the "normal" case first - VM_FAULT_MAJOR / VM_FAULT_MINOR
+        * Handle the "normal" case first - VM_FAULT_MAJOR
         */
        if (likely(!(fault & (VM_FAULT_ERROR | VM_FAULT_BADMAP | VM_FAULT_BADACCESS))))
                return 0;
index abe2a9542b3a367c778a96051dcf3618881d6fa1..97135b61b32aa759d96f54a2b8023211c4db7d9b 100644 (file)
@@ -295,7 +295,7 @@ retry:
        up_read(&mm->mmap_sem);
 
        /*
-        * Handle the "normal" case first - VM_FAULT_MAJOR / VM_FAULT_MINOR
+        * Handle the "normal" case first - VM_FAULT_MAJOR
         */
        if (likely(!(fault & (VM_FAULT_ERROR | VM_FAULT_BADMAP |
                              VM_FAULT_BADACCESS))))
index afccef5529ccb8d44409519aa075476af747722e..2ec3d3adcefc948870ab4419575aecab3f6f47e7 100644 (file)
@@ -276,7 +276,7 @@ retry:
        up_read(&mm->mmap_sem);
 
        /*
-        * Handle the "normal" case first - VM_FAULT_MAJOR / VM_FAULT_MINOR
+        * Handle the "normal" case first - VM_FAULT_MAJOR
         */
        if (likely(!(fault &
               (VM_FAULT_ERROR | VM_FAULT_BADMAP | VM_FAULT_BADACCESS))))
index c9784c1b18d8c6223afe359e4e4405b430b91780..7f4a1fdb1502005aa23431a5f36d568882f0aacf 100644 (file)
@@ -146,7 +146,7 @@ good_area:
        perf_sw_event(PERF_COUNT_SW_PAGE_FAULTS, 1, regs, address);
        if (flags & VM_FAULT_MAJOR)
                perf_sw_event(PERF_COUNT_SW_PAGE_FAULTS_MAJ, 1, regs, address);
-       else if (flags & VM_FAULT_MINOR)
+       else
                perf_sw_event(PERF_COUNT_SW_PAGE_FAULTS_MIN, 1, regs, address);
 
        return;
index 997fc2e5d9d8b46eeb4efb6eb7d23b8418e43390..7d42501c8bb4d4a60887fd4861f442f642c01597 100644 (file)
@@ -1052,8 +1052,6 @@ static inline void clear_page_pfmemalloc(struct page *page)
  * just gets major/minor fault counters bumped up.
  */
 
-#define VM_FAULT_MINOR 0 /* For backwards compat. Remove me quickly. */
-
 #define VM_FAULT_OOM   0x0001
 #define VM_FAULT_SIGBUS        0x0002
 #define VM_FAULT_MAJOR 0x0004