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/tile | |
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/tile')
-rw-r--r-- | arch/tile/include/asm/pgtable.h | 11 | ||||
-rw-r--r-- | arch/tile/mm/homecache.c | 4 |
2 files changed, 0 insertions, 15 deletions
diff --git a/arch/tile/include/asm/pgtable.h b/arch/tile/include/asm/pgtable.h index 5d1950788c69..bc75b6ef2e79 100644 --- a/arch/tile/include/asm/pgtable.h +++ b/arch/tile/include/asm/pgtable.h | |||
@@ -285,17 +285,6 @@ extern void start_mm_caching(struct mm_struct *mm); | |||
285 | extern void check_mm_caching(struct mm_struct *prev, struct mm_struct *next); | 285 | extern void check_mm_caching(struct mm_struct *prev, struct mm_struct *next); |
286 | 286 | ||
287 | /* | 287 | /* |
288 | * Support non-linear file mappings (see sys_remap_file_pages). | ||
289 | * This is defined by CLIENT1 set but CLIENT0 and _PAGE_PRESENT clear, and the | ||
290 | * file offset in the 32 high bits. | ||
291 | */ | ||
292 | #define _PAGE_FILE HV_PTE_CLIENT1 | ||
293 | #define PTE_FILE_MAX_BITS 32 | ||
294 | #define pte_file(pte) (hv_pte_get_client1(pte) && !hv_pte_get_client0(pte)) | ||
295 | #define pte_to_pgoff(pte) ((pte).val >> 32) | ||
296 | #define pgoff_to_pte(off) ((pte_t) { (((long long)(off)) << 32) | _PAGE_FILE }) | ||
297 | |||
298 | /* | ||
299 | * Encode and de-code a swap entry (see <linux/swapops.h>). | 288 | * Encode and de-code a swap entry (see <linux/swapops.h>). |
300 | * We put the swap file type+offset in the 32 high bits; | 289 | * We put the swap file type+offset in the 32 high bits; |
301 | * I believe we can just leave the low bits clear. | 290 | * I believe we can just leave the low bits clear. |
diff --git a/arch/tile/mm/homecache.c b/arch/tile/mm/homecache.c index cd3387370ebb..0029b3fb651b 100644 --- a/arch/tile/mm/homecache.c +++ b/arch/tile/mm/homecache.c | |||
@@ -263,10 +263,6 @@ static int pte_to_home(pte_t pte) | |||
263 | /* Update the home of a PTE if necessary (can also be used for a pgprot_t). */ | 263 | /* Update the home of a PTE if necessary (can also be used for a pgprot_t). */ |
264 | pte_t pte_set_home(pte_t pte, int home) | 264 | pte_t pte_set_home(pte_t pte, int home) |
265 | { | 265 | { |
266 | /* Check for non-linear file mapping "PTEs" and pass them through. */ | ||
267 | if (pte_file(pte)) | ||
268 | return pte; | ||
269 | |||
270 | #if CHIP_HAS_MMIO() | 266 | #if CHIP_HAS_MMIO() |
271 | /* Check for MMIO mappings and pass them through. */ | 267 | /* Check for MMIO mappings and pass them through. */ |
272 | if (hv_pte_get_mode(pte) == HV_PTE_MODE_MMIO) | 268 | if (hv_pte_get_mode(pte) == HV_PTE_MODE_MMIO) |