lkml.org 
[lkml]   [2022]   [Jan]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 01/16] tools: Move gfp.h and slab.h from radix-tree to lib
From
Date
Hi Matthew,

Many thanks for your review.

On Thu, 2022-01-27 at 13:28 +0000, Matthew Wilcox wrote:
> On Thu, Jan 27, 2022 at 02:21:19PM +0100, Karolina Drobnik wrote:
> > +#include <linux/types.h>
> > +
> > +#define __GFP_ZERO             0x8000u
> > +#define __GFP_DIRECT_RECLAIM   0x400000u
> > +
> > +#define __GFP_BITS_SHIFT 26
> > +#define __GFP_BITS_MASK ((gfp_t)((1 << __GFP_BITS_SHIFT) - 1))
> > +
> > +#define __GFP_HIGH             0x20u
> > +#define __GFP_IO               0x40u
> > +#define __GFP_FS               0x80u
> > +#define __GFP_NOWARN           0x200u
> > +#define __GFP_ATOMIC           0x80000u
> > +#define __GFP_ACCOUNT          0x100000u
> > +#define __GFP_KSWAPD_RECLAIM   0x2000000u
>
> Why have you reordered the bits here?

I probably mixed them up when I tried to merge the stubs I did for
memblock and the files that were already there. I'll fix it in v2.

> > -#define __GFP_BITS_SHIFT 26
> > -#define __GFP_BITS_MASK ((gfp_t)((1 << __GFP_BITS_SHIFT) - 1))
> > -
> > -#define __GFP_HIGH             0x20u
> > -#define __GFP_IO               0x40u
> > -#define __GFP_FS               0x80u
> > -#define __GFP_NOWARN           0x200u
> > -#define __GFP_ZERO             0x8000u
> > -#define __GFP_ATOMIC           0x80000u
> > -#define __GFP_ACCOUNT          0x100000u
> > -#define __GFP_DIRECT_RECLAIM   0x400000u
> > -#define __GFP_KSWAPD_RECLAIM   0x2000000u
>
> The original ordering makes more sense to me (but then it would; I
> did
> it)


\
 
 \ /
  Last update: 2022-01-28 12:01    [W:0.065 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site