Skip to contentSkip to conversation

Revert "mm: disable fault around on emulated access bit architecture"

PATCH New [email protected] 1 participant 1 message Jun 24, 2016

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 27/41 Revert "mm: disable fault around on emulated access bit architecture"

From: "Kirill A. Shutemov" <[email protected]>
Subject: Revert "mm: disable fault around on emulated access bit architecture"

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.

---

 mm/memory.c |    8 --------
 1 file changed, 8 deletions(-)
mm/memory.c renamed from mm/memory.c~revert-mm-disable-fault-around-on-emulated-access-bit-architecture +0 -8
diff -puN mm/memory.c~revert-mm-disable-fault-around-on-emulated-access-bit-architecture mm/memory.c
@@ -2898,16 +2898,8 @@ void do_set_pte(struct vm_area_struct *v
 	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)

_