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

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

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:
[PATCH 1/3] Move hugetlb_acct_memory(), Mel Gorman, (Tue May 27, 11:50 am)
Re: [PATCH 1/3] Move hugetlb_acct_memory(), Adam Litke, (Wed May 28, 6:37 am)
Re: [PATCH 3/3] Guarantee that COW faults for a process th ..., Andrew Morton, (Wed May 28, 6:42 pm)