lkml.org 
[lkml]   [2008]   [Feb]   [26]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
/
DateMon, 25 Feb 2008 22:45:24 -0800 (PST)
FromDavid Rientjes <>
SubjectRe: [patch 5/6] mempolicy: add MPOL_F_RELATIVE_NODES flag
On Tue, 26 Feb 2008, Paul Jackson wrote:

> David wrote:
> +static nodemask_t mpol_relative_nodemask(const nodemask_t *orig,
> +					 const nodemask_t *rel)
> +{
> +	nodemask_t ret;
> +	nodemask_t tmp;
> 
> Could you avoid needing the nodemask_t 'ret' on the stack, by passing
> in a "nodemask_t *" pointer to where you want the resulting nodemask_t
> written, rather than by returning it by value?
> 
>  static void mpol_relative_nodemask(nodemask_t *ret, const nodemask_t *orig,
> 					 const nodemask_t *rel)
> 

Done, thanks.


\
 
 \ /
  Last update: 2008-02-26 06:49    [W:1.064 / U:0.050 seconds]
©2003-2008 Jasper Spaans