Re: [PATCH trivial] block: GFP_ATOMIC is __GFP_HIGH

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eduard - Gabriel Munteanu
Date: Saturday, June 28, 2008 - 6:38 pm

On Sun, 29 Jun 2008 00:54:27 +0100 (BST)
Hugh Dickins <hugh@veritas.com> wrote:


Hi,

I'm not sure this is a good idea: GFP_ATOMIC and __GFP_HIGH are
semantically different, even though they are equivalent at the moment.
Have you seen GFP_NOWAIT's definition?
/* This equals 0, but use constants in case they ever change */
#define GFP_NOWAIT      (GFP_ATOMIC & ~__GFP_HIGH)

I think it's best to look at what that code intends to do, not at what
it does at the moment. Definitions for gfp flags might change in the
future.

If the code does not _semantically_ need __GFP_HIGH, then your commit
message should indicate so, rather than comparing it with GFP_ATOMIC.


	Cheers,
	Eduard
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH trivial] block: GFP_ATOMIC is __GFP_HIGH, Hugh Dickins, (Sat Jun 28, 4:54 pm)
Re: [PATCH trivial] block: GFP_ATOMIC is __GFP_HIGH, Eduard - Gabriel Mun ..., (Sat Jun 28, 6:38 pm)
Re: [PATCH trivial] block: GFP_ATOMIC is __GFP_HIGH, Hugh Dickins, (Sat Jun 28, 11:16 pm)
Re: [PATCH trivial] block: GFP_ATOMIC is __GFP_HIGH, Eduard - Gabriel Mun ..., (Sun Jun 29, 7:15 am)
Re: [PATCH trivial] block: GFP_ATOMIC is __GFP_HIGH, Jens Axboe, (Sun Jun 29, 11:23 am)