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.
Unified · Split
| @@ -2898,16 +2898,8 @@ void do_set_pte(struct vm_area_struct *vma, unsigned long address, · 2897 unmodified lines | ||
| 2898 | 2898 | update_mmu_cache(vma, address, pte); |
| 2899 | 2899 | } |
| 2900 | 2900 | |
| 2901 | −/* | |
| 2902 | − * If architecture emulates "accessed" or "young" bit without HW support, | |
| 2903 | − * there is no much gain with fault_around. | |
| 2904 | − */ | |
| 2905 | 2901 | static unsigned long fault_around_bytes __read_mostly = |
| 2906 | −#ifndef __HAVE_ARCH_PTEP_SET_ACCESS_FLAGS | |
| 2907 | − PAGE_SIZE; | |
| 2908 | −#else | |
| 2909 | 2902 | rounddown_pow_of_two(65536); |
| 2910 | −#endif | |
| 2911 | 2903 | |
| 2912 | 2904 | #ifdef CONFIG_DEBUG_FS |
| 2913 | 2905 | static int fault_around_bytes_get(void *data, u64 *val) |