]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
x86-pat-separate-the-pfn-attribute-tracking-for-remap_pfn_range-and-vm_insert_pfn-fix
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 14 Aug 2012 03:22:34 +0000 (13:22 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 4 Sep 2012 06:39:09 +0000 (16:39 +1000)
tweak a few comments

Cc: Konstantin Khlebnikov <khlebnikov@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/x86/mm/pat.c

index 4ad8316dbace3c5d44d461d2dfd19760f261e0fc..74a702674e866fd7346a348234ac9d8e06d0f3c6 100644 (file)
@@ -712,14 +712,12 @@ int track_pfn_remap(struct vm_area_struct *vma, pgprot_t *prot,
                return 0;
 
        /*
-        * for anything smaller than the vma size,
-        * we set prot based on the lookup.
+        * For anything smaller than the vma size we set prot based on the
+        * lookup.
         */
        flags = lookup_memtype(paddr);
 
-       /*
-        * Check memtype for the rest pages
-        */
+       /* Check memtype for the remaining pages */
        while (size > PAGE_SIZE) {
                size -= PAGE_SIZE;
                paddr += PAGE_SIZE;
@@ -741,7 +739,7 @@ int track_pfn_insert(struct vm_area_struct *vma, pgprot_t *prot,
        if (!pat_enabled)
                return 0;
 
-       /* we set prot based on lookup */
+       /* Set prot based on lookup */
        flags = lookup_memtype((resource_size_t)pfn << PAGE_SHIFT);
        *prot = __pgprot((pgprot_val(vma->vm_page_prot) & (~_PAGE_CACHE_MASK)) |
                         flags);