linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] mm: Improve consistency of ___GFP_xxx masks
@ 2017-04-26 13:35 Igor Stoppa
  2017-04-26 13:35 ` [PATCH 1/1] Remove hardcoding of ___GFP_xxx bitmasks Igor Stoppa
  0 siblings, 1 reply; 13+ messages in thread
From: Igor Stoppa @ 2017-04-26 13:35 UTC (permalink / raw)
  To: mhocko, namhyung; +Cc: linux-mm, linux-kernel, Igor Stoppa

The GFP bitmasks and the __GFP_BITS_SHIFT defines are expressed as
hardcoded constants.
This can be expressed in a more consistent way by relying on an enum of
shift positions.

Igor Stoppa (1):
  Remove hardcoding of ___GFP_xxx bitmasks

 include/linux/gfp.h | 82 +++++++++++++++++++++++++++++++++++------------------
 1 file changed, 55 insertions(+), 27 deletions(-)

-- 
2.9.3

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-05-10 15:24 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-26 13:35 [PATCH 0/1] mm: Improve consistency of ___GFP_xxx masks Igor Stoppa
2017-04-26 13:35 ` [PATCH 1/1] Remove hardcoding of ___GFP_xxx bitmasks Igor Stoppa
2017-04-26 14:47   ` Michal Hocko
2017-04-26 15:29     ` Igor Stoppa
2017-04-27 12:16       ` Question on ___GFP_NOLOCKDEP - Was: " Igor Stoppa
2017-04-27 13:35         ` Michal Hocko
2017-05-10 15:24           ` Vlastimil Babka
2017-04-27 12:18       ` Igor Stoppa
2017-04-27 13:41       ` Michal Hocko
2017-04-27 14:06         ` Igor Stoppa
2017-04-28  7:40           ` Michal Hocko
2017-04-28  7:43             ` Igor Stoppa
2017-04-28  8:13               ` Igor Stoppa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox