Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1421674 > unrolled thread

[PATCH 2/2] Revert "mm: disable fault around on emulated access bit architecture"

Started by"Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
First post2016-06-14 10:50 +0200
Last post2016-06-14 10:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/2] Revert "mm: disable fault around on emulated access bit architecture" "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> - 2016-06-14 10:50 +0200

#1421674 — [PATCH 2/2] Revert "mm: disable fault around on emulated access bit architecture"

From"Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Date2016-06-14 10:50 +0200
Subject[PATCH 2/2] Revert "mm: disable fault around on emulated access bit architecture"
Message-ID<rJScO-2p8-15@gated-at.bofh.it>
This reverts commit d0834a6c2c5b0c76cfb806bd7dba6556d8b4edbb.

After revert of 5c0a85fad949 ("mm: make faultaround produce old ptes")
faultaround doesn't have dependencies on hardware accessed bit, so let's
revert this one too.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
---
 mm/memory.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/mm/memory.c b/mm/memory.c
index 61fe7e7b56bf..cd1f29e4897e 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -2898,16 +2898,8 @@ void do_set_pte(struct vm_area_struct *vma, unsigned long address,
 	update_mmu_cache(vma, address, pte);
 }
 
-/*
- * If architecture emulates "accessed" or "young" bit without HW support,
- * there is no much gain with fault_around.
- */
 static unsigned long fault_around_bytes __read_mostly =
-#ifndef __HAVE_ARCH_PTEP_SET_ACCESS_FLAGS
-	PAGE_SIZE;
-#else
 	rounddown_pow_of_two(65536);
-#endif
 
 #ifdef CONFIG_DEBUG_FS
 static int fault_around_bytes_get(void *data, u64 *val)
-- 
2.8.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web