Re: [PATCH 1/2] huge page private reservation review cleanups

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mel Gorman
Date: Saturday, May 31, 2008 - 6:06 am

On (30/05/08 13:29), Andrew Morton didst pronounce:

Sounds good, thanks.


There are helpers that do that below. It was suggested that I define a
struct with bit-fields instead but I didn't feel it was much easier to
understand than masks which are already pretty common.


The assertions as-is would have made that hard all right, but the checks
(particularly the SHARED ones) that are there are really defensive in nature
rather than set in stone.  A VM_SHARED mapping could use the flags as well
if there was a good reason for it but I didn't want the helpers to be used
by accident.


I am currently under the belief that the helpers as-is are
fairly easy to understand, should not interfere badly with the
1GB-and-multi-large-page-support being worked on and are reasonably difficult
to use incorrectly but I'm open to being corrected on it.

Thanks

-- 
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 1/2] huge page private reservation review cleanups, Andy Whitcroft, (Fri May 30, 9:58 am)
Re: [PATCH 1/2] huge page private reservation review cleanups, Mel Gorman, (Sat May 31, 6:06 am)