pgprot_t        mask_set;
        pgprot_t        mask_clr;
        int             numpages;
-       int             processed;
        int             flushtlb;
        unsigned long   pfn;
 };
         */
        nextpage_addr = (address + psize) & pmask;
        numpages = (nextpage_addr - address) >> PAGE_SHIFT;
-       if (numpages < cpa->processed)
-               cpa->processed = numpages;
+       if (numpages < cpa->numpages)
+               cpa->numpages = numpages;
 
        /*
         * We are safe now. Check whether the new pgprot is the same:
         */
        addr = address + PAGE_SIZE;
        pfn++;
-       for (i = 1; i < cpa->processed; i++, addr += PAGE_SIZE, pfn++) {
+       for (i = 1; i < cpa->numpages; i++, addr += PAGE_SIZE, pfn++) {
                pgprot_t chk_prot = static_protections(new_prot, addr, pfn);
 
                if (pgprot_val(chk_prot) != pgprot_val(new_prot))
         * that we limited the number of possible pages already to
         * the number of pages in the large page.
         */
-       if (address == (nextpage_addr - psize) && cpa->processed == numpages) {
+       if (address == (nextpage_addr - psize) && cpa->numpages == numpages) {
                /*
                 * The address is aligned and the number of pages
                 * covers the full page.
                        set_pte_atomic(kpte, new_pte);
                        cpa->flushtlb = 1;
                }
-               cpa->processed = 1;
+               cpa->numpages = 1;
                return 0;
        }
 
        do_split = try_preserve_large_page(kpte, address, cpa);
        /*
         * When the range fits into the existing large page,
-        * return. cp->processed and cpa->tlbflush have been updated in
+        * return. cp->numpages and cpa->tlbflush have been updated in
         * try_large_page:
         */
        if (do_split <= 0)
                 * Store the remaining nr of pages for the large page
                 * preservation check.
                 */
-               cpa->numpages = cpa->processed = numpages;
+               cpa->numpages = numpages;
 
                ret = __change_page_attr(cpa, checkalias);
                if (ret)
                 * CPA operation. Either a large page has been
                 * preserved or a single page update happened.
                 */
-               BUG_ON(cpa->processed > numpages);
-               numpages -= cpa->processed;
-               cpa->vaddr += cpa->processed * PAGE_SIZE;
+               BUG_ON(cpa->numpages > numpages);
+               numpages -= cpa->numpages;
+               cpa->vaddr += cpa->numpages * PAGE_SIZE;
        }
        return 0;
 }