path: root/mm/highmem.c
AgeCommit message (Collapse)AuthorLines
2007-05-02[PATCH] i386: PARAVIRT: add kmap_atomic_pte for mapping highpte pagesJeremy Fitzhardinge-0/+9
Xen and VMI both have special requirements when mapping a highmem pte page into the kernel address space. These can be dealt with by adding a new kmap_atomic_pte() function for mapping highptes, and hooking it into the paravirt_ops infrastructure. Xen specifically wants to map the pte page RO, so this patch exposes a helper function, kmap_atomic_prot, which maps the page with the specified page protections. This also adds a kmap_flush_unused() function to clear out the cached kmap mappings. Xen needs this to clear out any potential stray RW mappings of pages which will become part of a pagetable. [ Zach - vmi.c will need some attention after this patch. It wasn't immediately obvious to me what needs to be done. ] Signed-off-by: Jeremy Fitzhardinge <> Signed-off-by: Andi Kleen <> Cc: Zachary Amsden <>
2007-02-11[PATCH] Use ZVC for free_pagesChristoph Lameter-1/+2
This is again simplifies some of the VM counter calculations through the use of the ZVC consolidated counters. [ build fix] Signed-off-by: Christoph Lameter <> Signed-off-by: Michal Piotrowski <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
2006-09-30[PATCH] BLOCK: Separate the bounce buffering code from the highmem code [try #6]David Howells-281/+0
Move the bounce buffer code from mm/highmem.c to mm/bounce.c so that it can be more easily disabled when the block layer is disabled. !!!NOTE!!! There may be a bug in this code: Should init_emergency_pool() be contingent on CONFIG_HIGHMEM? Signed-Off-By: David Howells <> Signed-off-by: Jens Axboe <>
2006-09-26[PATCH] reduce MAX_NR_ZONES: move HIGHMEM counters into highmem.c/.hChristoph Lameter-0/+13
Move totalhigh_pages and nr_free_highpages() into highmem.c/.h Move the totalhigh_pages definition into highmem.c/.h. Move the nr_free_highpages function into highmem.c [ build fix] Signed-off-by: Christoph Lameter <> Signed-off-by: Yoichi Yuasa <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
2006-06-30[PATCH] zoned vm counters: conversion of nr_bounce to per zone counterChristoph Lameter-3/+3
Conversion of nr_bounce to a per zone counter nr_bounce is only used for proc output. So it could be left as an event counter. However, the event counters may not be accurate and nr_bounce is categorizing types of pages in a zone. So we really need this to also be a per zone counter. [ bugfix] Signed-off-by: Christoph Lameter <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
2006-04-02BUG_ON() Conversion in mm/highmem.cEric Sesterhenn-10/+5
this changes if() BUG(); constructs to BUG_ON() which is cleaner, contains unlikely() and can better optimized away. Signed-off-by: Eric Sesterhenn <> Signed-off-by: Adrian Bunk <>
2006-03-26[PATCH] mempool: use common mempool page allocatorMatthew Dobson-16/+7
Convert two mempool users that currently use their own mempool-backed page allocators to use the generic mempool page allocator. Also included are 2 trivial whitespace fixes. Signed-off-by: Matthew Dobson <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
2006-03-23[PATCH] Block queue IO tracing support (blktrace) as of 2006-03-23Jens Axboe-0/+3
Signed-off-by: Jens Axboe <>
2005-10-28[PATCH] gfp_t: the restAl Viro-5/+9
zone handling, mapping->flags handling Signed-off-by: Al Viro <> Signed-off-by: Linus Torvalds <>
2005-10-08[PATCH] gfp flags annotations - part 1Al Viro-1/+1
- added typedef unsigned int __nocast gfp_t; - replaced __nocast uses for gfp flags with gfp_t - it gives exactly the same warnings as far as sparse is concerned, doesn't change generated code (from gcc point of view we replaced unsigned int with typedef) and documents what's going on far better. Signed-off-by: Al Viro <> Signed-off-by: Linus Torvalds <>
2005-05-01[PATCH] count bounce buffer pages in vmstatKAMEZAWA Hiroyuki-0/+2
This is a patch for counting the number of pages for bounce buffers. It's shown in /proc/vmstat. Currently, the number of bounce pages are not counted anywhere. So, if there are many bounce pages, it seems that there are leaked pages. And it's difficult for a user to imagine the usage of bounce pages. So, it's meaningful to show # of bouce pages. Signed-off-by: KAMEZAWA Hiroyuki <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
2005-04-16Linux-2.6.12-rc2v2.6.12-rc2Linus Torvalds-0/+607
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!