X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=fs%2Fproc%2Ftask_mmu.c;h=c4b2646b6d7c66f7b1c37d6fbaf033cc5ccaa561;hb=efb5fea23009a0223996e699b54cc9533e2070e9;hp=fb52b548080da50cf2cece633c2585601485fc09;hpb=38fd2c202a3d82bc12430bce5789fa2c2a406f71;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index fb52b54..c4b2646 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -152,7 +153,7 @@ static void *m_start(struct seq_file *m, loff_t *pos) /* * We remember last_addr rather than next_addr to hit with - * mmap_cache most of the time. We have zero last_addr at + * vmacache most of the time. We have zero last_addr at * the beginning and also after lseek. We will have -1 last_addr * after the end of the vmas. */ @@ -1350,7 +1351,7 @@ static int gather_hugetbl_stats(pte_t *pte, unsigned long hmask, struct numa_maps *md; struct page *page; - if (pte_none(*pte)) + if (!pte_present(*pte)) return 0; page = pte_page(*pte);