Re: [PATCH 3/3] Guarantee that COW faults for a process that called mmap(MAP_PRIVATE) on hugetlbfs will succeed

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Mel Gorman <mel@...>
Cc: <dean@...>, <linux-kernel@...>, <wli@...>, <dwg@...>, <apw@...>, <linux-mm@...>, <andi@...>, <kenchen@...>, <agl@...>, <abh@...>
Date: Wednesday, May 28, 2008 - 9:42 pm

On Tue, 27 May 2008 19:51:28 +0100 (IST) Mel Gorman <mel@csn.ul.ie> wrote:


Implementation nitlets:


It might be better to have

unsigned long get_vma_private_data(struct vm_area_struct);
unsigned long set_vma_private_data(struct vm_area_struct);

(or even get_private & set_private)

to do away with all the funky casting.

Or it might not be, too.


It would be clearer to have a little helper function for the above two
snippets.

And the first uses pgoff_t whereas the second uses bare ulong.

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

Messages in current thread:
Re: [PATCH 3/3] Guarantee that COW faults for a process that..., Andrew Morton, (Wed May 28, 9:42 pm)
[PATCH 1/3] Move hugetlb_acct_memory(), Mel Gorman, (Tue May 27, 2:50 pm)
Re: [PATCH 1/3] Move hugetlb_acct_memory(), Adam Litke, (Wed May 28, 9:37 am)