On Thu, 2008-01-17 at 14:51 -0800, Andrew Morton wrote:Hmm, this fell off my radar. How about something like this as a minimal fix (untested as -mm is a complete doorstop for me at the moment)? diff -r 5595adaea70f fs/proc/task_mmu.c --- a/fs/proc/task_mmu.c Thu Jan 17 13:26:54 2008 -0600 +++ b/fs/proc/task_mmu.c Thu Jan 17 17:29:21 2008 -0600 @@ -582,20 +583,26 @@ { struct pagemapread *pm = private; pte_t *pte; - int err = 0; + int offset = 0, err = 0; pte = pte_offset_map(pmd, addr); - for (; addr != end; pte++, addr += PAGE_SIZE) { + for (; addr != end; offset++, addr += PAGE_SIZE) { u64 pfn = PM_NOT_PRESENT; - if (is_swap_pte(*pte)) - pfn = swap_pte_to_pagemap_entry(*pte); - else if (pte_present(*pte)) - pfn = pte_pfn(*pte); + if (is_swap_pte(pte[offset])) + pfn = swap_pte_to_pagemap_entry(pte[offset]); + else if (pte_present(pte[offset])) + pfn = pte_pfn(pte[offset]); +#ifdef CONFIG_HIGHPTE + pte_unmap(pte); err = add_to_pagemap(addr, pfn, pm); + pte = pte_offset_map(pmd, addr); +#else + err = add_to_pagemap(addr, pfn, pm); +#endif if (err) return err; } - pte_unmap(pte - 1); + pte_unmap(pte); cond_resched(); -- Mathematics is the supreme nostalgia of our time. --
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| James Bottomley | Re: Announce: Linux-next (Or Andrew's dream :-)) |
| Trent Piepho | Re: [PATCH] fakephp: Allocate PCI resources before adding the device |
| Antonio Almeida | HTB accuracy for high speed |
| David Miller | [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
git: | |
