Re: [PATCH -mmotm] [BUGFIX] pagemap: fix pfn calculation for hugepage

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: KAMEZAWA Hiroyuki
Date: Tuesday, March 23, 2010 - 10:57 pm

On Wed, 24 Mar 2010 14:42:27 +0900
Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> wrote:

Seems good.

More info.
 - This patch modifies walk_page_range()'s hugepage walker.
   But the change only affects pagemap_read(), it's only caller of hugepage callback.

 - Before patch, hugetlb_entry() callback is called once per pgd. Then,
   hugtlb_entry() has to walk pgd's contents by itself. 
   This caused BUG.

 - After patch, hugetlb_entry() callback is called once per hugepte entry.
   Then, callback will be much simpler.


nitpick.

seems nicer than mine but "return 0" is ok if you add "return err" in the loop.

Thanks,
-Kame

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH -mmotm] [BUGFIX] pagemap: fix pfn calculation f ..., KAMEZAWA Hiroyuki, (Tue Mar 23, 10:57 pm)
How to reserved all the CPU time for the private computing, Zhu, Yijun (NSN - CN ..., (Tue Mar 23, 10:58 pm)