* Re: + numa-generic-management-of-nodemasks-for-various-purposes.patch added to -mm tree [not found] <200707290715.l6T7FtN8013215@imap1.linux-foundation.org> @ 2007-07-29 11:59 ` Paul Jackson 2007-07-30 21:43 ` Lee Schermerhorn 0 siblings, 1 reply; 3+ messages in thread From: Paul Jackson @ 2007-07-29 11:59 UTC (permalink / raw) To: linux-kernel; +Cc: akpm, mm-commits, lee.schermerhorn, bob.picco, clameter Lee Schermerhorn (via Andrew) wrote: > +static inline void node_set_state(int node, enum node_states state) > +{ > + __node_set(node, &node_states[state]); > +} > + > +static inline void node_clear_state(int node, enum node_states state) > +{ > + __node_clear(node, &node_states[state]); > +} Lee - would you get the same result (same compiled binary code) with something like: +static inline void node_set_state(int node, enum node_states state) +{ + node_set(node, node_states[state]); +} + +static inline void node_clear_state(int node, enum node_states state) +{ + node_clear(node, node_states[state]); +} If so, then I're prefer the latter, as it doesn't depend on the strange #define wrapping an inline implementation of node_set and node_clear. In other words, the latter looks 'simpler'. -- I won't rest till it's the best ... Programmer, Linux Scalability Paul Jackson <pj@sgi.com> 1.925.600.0401 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: + numa-generic-management-of-nodemasks-for-various-purposes.patch added to -mm tree 2007-07-29 11:59 ` + numa-generic-management-of-nodemasks-for-various-purposes.patch added to -mm tree Paul Jackson @ 2007-07-30 21:43 ` Lee Schermerhorn 2007-07-30 22:00 ` Christoph Lameter 0 siblings, 1 reply; 3+ messages in thread From: Lee Schermerhorn @ 2007-07-30 21:43 UTC (permalink / raw) To: Paul Jackson; +Cc: linux-kernel, akpm, mm-commits, bob.picco, clameter On Sun, 2007-07-29 at 04:59 -0700, Paul Jackson wrote: > Lee Schermerhorn (via Andrew) wrote: > > +static inline void node_set_state(int node, enum node_states state) > > +{ > > + __node_set(node, &node_states[state]); > > +} > > + > > +static inline void node_clear_state(int node, enum node_states state) > > +{ > > + __node_clear(node, &node_states[state]); > > +} > > > Lee - would you get the same result (same compiled binary code) with > something like: > > +static inline void node_set_state(int node, enum node_states state) > +{ > + node_set(node, node_states[state]); > +} > + > +static inline void node_clear_state(int node, enum node_states state) > +{ > + node_clear(node, node_states[state]); > +} > > If so, then I're prefer the latter, as it doesn't depend on the strange > #define wrapping an inline implementation of node_set and node_clear. > > In other words, the latter looks 'simpler'. > I'm OK with this, altho' I think Christoph was just following the lead of the other node[s]_*() functions. Care to submit a patch when you return from vacation? Christoph: what do you think? Lee ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: + numa-generic-management-of-nodemasks-for-various-purposes.patch added to -mm tree 2007-07-30 21:43 ` Lee Schermerhorn @ 2007-07-30 22:00 ` Christoph Lameter 0 siblings, 0 replies; 3+ messages in thread From: Christoph Lameter @ 2007-07-30 22:00 UTC (permalink / raw) To: Lee Schermerhorn; +Cc: Paul Jackson, linux-kernel, akpm, mm-commits, bob.picco On Mon, 30 Jul 2007, Lee Schermerhorn wrote: > I'm OK with this, altho' I think Christoph was just following the lead > of the other node[s]_*() functions. Care to submit a patch when you > return from vacation? Right. > Christoph: what do you think? I do not mind either way. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-07-30 22:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200707290715.l6T7FtN8013215@imap1.linux-foundation.org>
2007-07-29 11:59 ` + numa-generic-management-of-nodemasks-for-various-purposes.patch added to -mm tree Paul Jackson
2007-07-30 21:43 ` Lee Schermerhorn
2007-07-30 22:00 ` Christoph Lameter
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox