From: Jan Kara <jack@suse.cz> To: linux-fsdevel@vger.kernel.org Cc: Jan Kara <jack@suse.cz>, linux-nvdimm@lists.01.org, NeilBrown <neilb@suse.com>, "Wilcox, Matthew R" <matthew.r.wilcox@intel.com> Subject: [PATCH 03/12] mm: Remove VM_FAULT_MINOR Date: Thu, 10 Mar 2016 20:18:46 +0100 [thread overview] Message-ID: <1457637535-21633-4-git-send-email-jack@suse.cz> (raw) In-Reply-To: <1457637535-21633-1-git-send-email-jack@suse.cz> The define has a comment from Nick Pigging 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> --- arch/arm/mm/fault.c | 2 +- arch/arm64/mm/fault.c | 2 +- arch/unicore32/mm/fault.c | 2 +- arch/xtensa/mm/fault.c | 2 +- include/linux/mm.h | 2 -- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c index daafcf121ce0..ad5841856007 100644 --- a/arch/arm/mm/fault.c +++ b/arch/arm/mm/fault.c @@ -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; diff --git a/arch/arm64/mm/fault.c b/arch/arm64/mm/fault.c index abe2a9542b3a..97135b61b32a 100644 --- a/arch/arm64/mm/fault.c +++ b/arch/arm64/mm/fault.c @@ -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)))) diff --git a/arch/unicore32/mm/fault.c b/arch/unicore32/mm/fault.c index afccef5529cc..2ec3d3adcefc 100644 --- a/arch/unicore32/mm/fault.c +++ b/arch/unicore32/mm/fault.c @@ -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)))) diff --git a/arch/xtensa/mm/fault.c b/arch/xtensa/mm/fault.c index c9784c1b18d8..7f4a1fdb1502 100644 --- a/arch/xtensa/mm/fault.c +++ b/arch/xtensa/mm/fault.c @@ -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; diff --git a/include/linux/mm.h b/include/linux/mm.h index 516e14944339..37f319d7636e 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -1051,8 +1051,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 -- 2.6.2 _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm
WARNING: multiple messages have this Message-ID (diff)
From: Jan Kara <jack@suse.cz> To: linux-fsdevel@vger.kernel.org Cc: "Wilcox, Matthew R" <matthew.r.wilcox@intel.com>, Ross Zwisler <ross.zwisler@linux.intel.com>, Dan Williams <dan.j.williams@intel.com>, linux-nvdimm@lists.01.org, NeilBrown <neilb@suse.com>, Jan Kara <jack@suse.cz> Subject: [PATCH 03/12] mm: Remove VM_FAULT_MINOR Date: Thu, 10 Mar 2016 20:18:46 +0100 [thread overview] Message-ID: <1457637535-21633-4-git-send-email-jack@suse.cz> (raw) In-Reply-To: <1457637535-21633-1-git-send-email-jack@suse.cz> The define has a comment from Nick Pigging 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> --- arch/arm/mm/fault.c | 2 +- arch/arm64/mm/fault.c | 2 +- arch/unicore32/mm/fault.c | 2 +- arch/xtensa/mm/fault.c | 2 +- include/linux/mm.h | 2 -- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c index daafcf121ce0..ad5841856007 100644 --- a/arch/arm/mm/fault.c +++ b/arch/arm/mm/fault.c @@ -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; diff --git a/arch/arm64/mm/fault.c b/arch/arm64/mm/fault.c index abe2a9542b3a..97135b61b32a 100644 --- a/arch/arm64/mm/fault.c +++ b/arch/arm64/mm/fault.c @@ -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)))) diff --git a/arch/unicore32/mm/fault.c b/arch/unicore32/mm/fault.c index afccef5529cc..2ec3d3adcefc 100644 --- a/arch/unicore32/mm/fault.c +++ b/arch/unicore32/mm/fault.c @@ -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)))) diff --git a/arch/xtensa/mm/fault.c b/arch/xtensa/mm/fault.c index c9784c1b18d8..7f4a1fdb1502 100644 --- a/arch/xtensa/mm/fault.c +++ b/arch/xtensa/mm/fault.c @@ -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; diff --git a/include/linux/mm.h b/include/linux/mm.h index 516e14944339..37f319d7636e 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -1051,8 +1051,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 -- 2.6.2
next prev parent reply other threads:[~2016-03-10 19:18 UTC|newest] Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-03-10 19:18 [RFC] [PATCH 0/12] DAX page fault locking Jan Kara 2016-03-10 19:18 ` Jan Kara 2016-03-10 19:18 ` [PATCH 01/12] DAX: move RADIX_DAX_ definitions to dax.c Jan Kara 2016-03-10 19:18 ` Jan Kara 2016-03-11 22:54 ` Ross Zwisler 2016-03-11 22:54 ` Ross Zwisler 2016-03-10 19:18 ` [PATCH 02/12] radix-tree: make 'indirect' bit available to exception entries Jan Kara 2016-03-10 19:18 ` Jan Kara 2016-03-10 19:18 ` Jan Kara [this message] 2016-03-10 19:18 ` [PATCH 03/12] mm: Remove VM_FAULT_MINOR Jan Kara 2016-03-10 19:38 ` Wilcox, Matthew R 2016-03-10 19:38 ` Wilcox, Matthew R 2016-03-10 19:48 ` Jan Kara 2016-03-10 19:48 ` Jan Kara 2016-03-10 19:18 ` [PATCH 04/12] ocfs2: Fix return value from ocfs2_page_mkwrite() Jan Kara 2016-03-10 19:18 ` Jan Kara 2016-03-10 19:18 ` [PATCH 05/12] dax: Remove synchronization using i_mmap_lock Jan Kara 2016-03-10 19:55 ` Wilcox, Matthew R 2016-03-10 19:55 ` Wilcox, Matthew R 2016-03-10 20:05 ` Jan Kara 2016-03-10 20:05 ` Jan Kara 2016-03-10 20:10 ` Wilcox, Matthew R 2016-03-10 20:10 ` Wilcox, Matthew R 2016-03-14 10:01 ` Jan Kara 2016-03-14 10:01 ` Jan Kara 2016-03-14 14:51 ` Wilcox, Matthew R 2016-03-14 14:51 ` Wilcox, Matthew R 2016-03-15 9:50 ` Jan Kara 2016-03-15 9:50 ` Jan Kara 2016-03-10 19:18 ` [PATCH 06/12] dax: Remove complete_unwritten argument Jan Kara 2016-03-10 19:18 ` Jan Kara 2016-03-10 19:18 ` [PATCH 07/12] dax: Fix data corruption for written and mmapped files Jan Kara 2016-03-10 19:18 ` Jan Kara 2016-03-10 19:18 ` [PATCH 08/12] dax: Fix bogus fault return value on cow faults Jan Kara 2016-03-10 19:18 ` Jan Kara 2016-03-10 19:18 ` [PATCH 09/12] dax: Allow DAX code to replace exceptional entries Jan Kara 2016-03-10 19:18 ` Jan Kara 2016-03-10 19:18 ` [PATCH 10/12] dax: Remove redundant inode size checks Jan Kara 2016-03-10 19:18 ` Jan Kara 2016-03-10 19:18 ` [PATCH 11/12] dax: Disable huge page handling Jan Kara 2016-03-10 19:34 ` Dan Williams 2016-03-10 19:34 ` Dan Williams 2016-03-10 19:52 ` Jan Kara 2016-03-10 19:52 ` Jan Kara 2016-03-10 19:18 ` [PATCH 12/12] dax: New fault locking Jan Kara 2016-03-10 19:18 ` Jan Kara 2016-03-10 23:54 ` NeilBrown 2016-03-10 23:54 ` NeilBrown 2016-03-15 21:34 ` NeilBrown 2016-03-15 21:34 ` NeilBrown 2016-03-18 14:16 ` Jan Kara 2016-03-18 14:16 ` Jan Kara 2016-03-18 15:39 ` Jan Kara 2016-03-18 15:39 ` Jan Kara 2016-03-22 21:10 ` NeilBrown 2016-03-22 21:10 ` NeilBrown 2016-03-23 11:00 ` Jan Kara 2016-03-23 11:00 ` Jan Kara 2016-03-31 4:20 ` NeilBrown 2016-03-31 4:20 ` NeilBrown 2016-03-31 8:54 ` Jan Kara 2016-03-31 8:54 ` Jan Kara 2016-04-01 0:34 ` NeilBrown 2016-04-01 0:34 ` NeilBrown
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1457637535-21633-4-git-send-email-jack@suse.cz \ --to=jack@suse.cz \ --cc=linux-fsdevel@vger.kernel.org \ --cc=linux-nvdimm@lists.01.org \ --cc=matthew.r.wilcox@intel.com \ --cc=neilb@suse.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.