On Thu, 17 Jan 2008 18:12:48 -0600 Matt Mackall <mpm@selenic.com> wrote:Do we need `offset' at all? You have static int pagemap_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end, void *private) { struct pagemapread *pm = private; pte_t *pte; int offset = 0, err = 0; for (; addr != end; offset++, addr += PAGE_SIZE) { u64 pfn = PM_NOT_PRESENT; pte = pte_offset_map(pmd, addr); 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]); pte_unmap(pte); err = add_to_pagemap(addr, pfn, pm); if (err) return err; } cond_resched(); return err; } but I think we just do s/pte[offset]/*pte/. The virtual address should be the only thing we need to increment as we walk across the addresses here? --
| 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: | |
