Re: [PATCH] hugepage: support ZERO_PAGE()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mel Gorman
Date: Tuesday, September 2, 2008 - 9:27 am

On (02/09/08 10:21), KOSAKI Motohiro didst pronounce:

Here is a second go at reviewing this after spending a bit more time on
it.


I checked and this appears to be ok for both gdb and direct-io at least.
More comments are below. They are mostly about style except for one.


Why does the signature need to change? You have the VMA and could check
the vma->flags within the function.


Calculate pfn_offset within the if statement here so that the change
below is unnecessary. The zeropage_ok ? 0 : pfn_offset is trickier to
read than it needs to be.


For direct-IO on NUMA, do we care that we are now calling get_page() and
bumping the reference count on the zero page instead of a struct page
that could be local? I suspect the answer is "no" because the same
problem would apply for base pages but someone might disagree.


-- 
Mel Gorman
Part-time Phd Student                          Linux Technology Center
University of Limerick                         IBM Dublin Software Lab
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] coredump_filter: add hugepage core dumping, KOSAKI Motohiro, (Wed Aug 27, 10:24 pm)
some problem with "git pull", Peter Teoh, (Wed Aug 27, 10:38 pm)
Re: [PATCH] coredump_filter: add hugepage core dumping, KOSAKI Motohiro, (Thu Aug 28, 7:59 am)
Re: [PATCH] coredump_filter: add hugepage core dumping, Hugh Dickins, (Thu Aug 28, 9:38 am)
Re: [PATCH] coredump_filter: add hugepage core dumping, KOSAKI Motohiro, (Thu Aug 28, 4:35 pm)
Re: [PATCH] coredump_filter: add hugepage core dumping, Hidehiro Kawai, (Sun Aug 31, 11:00 pm)
[PATCH] hugepage: support ZERO_PAGE(), KOSAKI Motohiro, (Mon Sep 1, 6:21 pm)
Re: [PATCH] coredump_filter: add hugepage core dumping, KOSAKI Motohiro, (Mon Sep 1, 7:18 pm)
Re: [PATCH] hugepage: support ZERO_PAGE(), Mel Gorman, (Tue Sep 2, 7:22 am)
Re: [PATCH] hugepage: support ZERO_PAGE(), Mel Gorman, (Tue Sep 2, 8:13 am)
Re: [PATCH] hugepage: support ZERO_PAGE(), Mel Gorman, (Tue Sep 2, 9:27 am)
Re: [PATCH] hugepage: support ZERO_PAGE(), Adam Litke, (Tue Sep 2, 10:27 am)
Re: [PATCH] coredump_filter: add hugepage core dumping, KOSAKI Motohiro, (Fri Sep 5, 1:06 am)
Re: [PATCH] coredump_filter: add hugepage core dumping, Hidehiro Kawai, (Sun Sep 7, 6:51 pm)
Re: [PATCH] coredump_filter: add hugepage core dumping, KOSAKI Motohiro, (Tue Sep 9, 4:20 am)
Re: [PATCH] coredump_filter: add hugepage core dumping, Roland McGrath, (Tue Sep 9, 11:04 pm)
Re: [PATCH] coredump_filter: add hugepage core dumping, KOSAKI Motohiro, (Tue Sep 9, 11:53 pm)