History

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.

Kirill A. Shutemov committed 10 years ago

Commit 06d8fbc1 parent 315d09b1 file · +0 −8Browse files

Unified · Split

mm/memory.c+0−8
@@ -2898,16 +2898,8 @@ void do_set_pte(struct vm_area_struct *vma, unsigned long address, · 2897 unmodified lines
28982898 update_mmu_cache(vma, address, pte);
28992899 }
29002900
2901−/*
2902− * If architecture emulates "accessed" or "young" bit without HW support,
2903− * there is no much gain with fault_around.
2904− */
29052901 static unsigned long fault_around_bytes __read_mostly =
2906−#ifndef __HAVE_ARCH_PTEP_SET_ACCESS_FLAGS
2907− PAGE_SIZE;
2908−#else
29092902 rounddown_pow_of_two(65536);
2910−#endif
29112903
29122904 #ifdef CONFIG_DEBUG_FS
29132905 static int fault_around_bytes_get(void *data, u64 *val)