diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-10 19:45:56 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-10 19:45:56 -0500 |
commit | 992de5a8eca7cbd3215e3eb2c439b2c11582a58b (patch) | |
tree | 863988f84c1dd57a02fa337ecbce49263a3b9511 /arch/microblaze/include | |
parent | b2718bffb4088faf13092db30c1ebf088ddee52e (diff) | |
parent | d5b3cf7139b8770af4ed8bb36a1ab9d290ac39e9 (diff) |
Merge branch 'akpm' (patches from Andrew)
Merge misc updates from Andrew Morton:
"Bite-sized chunks this time, to avoid the MTA ratelimiting woes.
- fs/notify updates
- ocfs2
- some of MM"
That laconic "some MM" is mainly the removal of remap_file_pages(),
which is a big simplification of the VM, and which gets rid of a *lot*
of random cruft and special cases because we no longer support the
non-linear mappings that it used.
From a user interface perspective, nothing has changed, because the
remap_file_pages() syscall still exists, it's just done by emulating the
old behavior by creating a lot of individual small mappings instead of
one non-linear one.
The emulation is slower than the old "native" non-linear mappings, but
nobody really uses or cares about remap_file_pages(), and simplifying
the VM is a big advantage.
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (78 commits)
memcg: zap memcg_slab_caches and memcg_slab_mutex
memcg: zap memcg_name argument of memcg_create_kmem_cache
memcg: zap __memcg_{charge,uncharge}_slab
mm/page_alloc.c: place zone_id check before VM_BUG_ON_PAGE check
mm: hugetlb: fix type of hugetlb_treat_as_movable variable
mm, hugetlb: remove unnecessary lower bound on sysctl handlers"?
mm: memory: merge shared-writable dirtying branches in do_wp_page()
mm: memory: remove ->vm_file check on shared writable vmas
xtensa: drop _PAGE_FILE and pte_file()-related helpers
x86: drop _PAGE_FILE and pte_file()-related helpers
unicore32: drop pte_file()-related helpers
um: drop _PAGE_FILE and pte_file()-related helpers
tile: drop pte_file()-related helpers
sparc: drop pte_file()-related helpers
sh: drop _PAGE_FILE and pte_file()-related helpers
score: drop _PAGE_FILE and pte_file()-related helpers
s390: drop pte_file()-related helpers
parisc: drop _PAGE_FILE and pte_file()-related helpers
openrisc: drop _PAGE_FILE and pte_file()-related helpers
nios2: drop _PAGE_FILE and pte_file()-related helpers
...
Diffstat (limited to 'arch/microblaze/include')
-rw-r--r-- | arch/microblaze/include/asm/pgtable.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/microblaze/include/asm/pgtable.h b/arch/microblaze/include/asm/pgtable.h index df19d0c47be8..91b9b46fbb5d 100644 --- a/arch/microblaze/include/asm/pgtable.h +++ b/arch/microblaze/include/asm/pgtable.h | |||
@@ -40,10 +40,6 @@ extern int mem_init_done; | |||
40 | #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) | 40 | #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) |
41 | #define __swp_entry_to_pte(x) ((pte_t) { (x).val }) | 41 | #define __swp_entry_to_pte(x) ((pte_t) { (x).val }) |
42 | 42 | ||
43 | #ifndef __ASSEMBLY__ | ||
44 | static inline int pte_file(pte_t pte) { return 0; } | ||
45 | #endif /* __ASSEMBLY__ */ | ||
46 | |||
47 | #define ZERO_PAGE(vaddr) ({ BUG(); NULL; }) | 43 | #define ZERO_PAGE(vaddr) ({ BUG(); NULL; }) |
48 | 44 | ||
49 | #define swapper_pg_dir ((pgd_t *) NULL) | 45 | #define swapper_pg_dir ((pgd_t *) NULL) |
@@ -207,7 +203,6 @@ static inline pte_t pte_mkspecial(pte_t pte) { return pte; } | |||
207 | 203 | ||
208 | /* Definitions for MicroBlaze. */ | 204 | /* Definitions for MicroBlaze. */ |
209 | #define _PAGE_GUARDED 0x001 /* G: page is guarded from prefetch */ | 205 | #define _PAGE_GUARDED 0x001 /* G: page is guarded from prefetch */ |
210 | #define _PAGE_FILE 0x001 /* when !present: nonlinear file mapping */ | ||
211 | #define _PAGE_PRESENT 0x002 /* software: PTE contains a translation */ | 206 | #define _PAGE_PRESENT 0x002 /* software: PTE contains a translation */ |
212 | #define _PAGE_NO_CACHE 0x004 /* I: caching is inhibited */ | 207 | #define _PAGE_NO_CACHE 0x004 /* I: caching is inhibited */ |
213 | #define _PAGE_WRITETHRU 0x008 /* W: caching is write-through */ | 208 | #define _PAGE_WRITETHRU 0x008 /* W: caching is write-through */ |
@@ -337,7 +332,6 @@ static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } | |||
337 | static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } | 332 | static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } |
338 | static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } | 333 | static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } |
339 | static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } | 334 | static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } |
340 | static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } | ||
341 | 335 | ||
342 | static inline void pte_uncache(pte_t pte) { pte_val(pte) |= _PAGE_NO_CACHE; } | 336 | static inline void pte_uncache(pte_t pte) { pte_val(pte) |= _PAGE_NO_CACHE; } |
343 | static inline void pte_cache(pte_t pte) { pte_val(pte) &= ~_PAGE_NO_CACHE; } | 337 | static inline void pte_cache(pte_t pte) { pte_val(pte) &= ~_PAGE_NO_CACHE; } |
@@ -499,11 +493,6 @@ static inline pmd_t *pmd_offset(pgd_t *dir, unsigned long address) | |||
499 | 493 | ||
500 | #define pte_unmap(pte) kunmap_atomic(pte) | 494 | #define pte_unmap(pte) kunmap_atomic(pte) |
501 | 495 | ||
502 | /* Encode and decode a nonlinear file mapping entry */ | ||
503 | #define PTE_FILE_MAX_BITS 29 | ||
504 | #define pte_to_pgoff(pte) (pte_val(pte) >> 3) | ||
505 | #define pgoff_to_pte(off) ((pte_t) { ((off) << 3) | _PAGE_FILE }) | ||
506 | |||
507 | extern pgd_t swapper_pg_dir[PTRS_PER_PGD]; | 496 | extern pgd_t swapper_pg_dir[PTRS_PER_PGD]; |
508 | 497 | ||
509 | /* | 498 | /* |