Re: [PATCH 2/7] mm: vmscan: Convert lumpy_mode into a bitmask

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johannes Weiner
Date: Wednesday, December 1, 2010 - 3:27 am

On Mon, Nov 22, 2010 at 03:43:50PM +0000, Mel Gorman wrote:

I find those names terribly undescriptive.  It also strikes me as an
odd set of flags.  Can't this be represented with less?

	LUMPY_MODE_ENABLED
	LUMPY_MODE_SYNC

or, after the rename,

	RECLAIM_MODE_HIGHER	= 1
	RECLAIM_MODE_SYNC	= 2
	RECLAIM_MODE_LUMPY	= 4

where compaction mode is default if RECLAIM_MODE_HIGHER, and
RECLAIM_MODE_LUMPY will go away eventually.

Also, if you have a flag name for 'reclaim with extra efforts for
higher order pages' that is better than RECLAIM_MODE_HIGHER... ;)


lumpy_mode_t / reclaim_mode_t?
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 2/7] mm: vmscan: Convert lumpy_mode into a bitmask, Johannes Weiner, (Wed Dec 1, 3:27 am)