Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1263378

[PATCH 0/3] __GFP_REPEAT cleanup

From mhocko@kernel.org
Newsgroups linux.kernel
Subject [PATCH 0/3] __GFP_REPEAT cleanup
Date 2015-11-05 17:20 +0100
Message-ID <qrvqx-ys-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,
while working on something unrelated I've checked the current usage
of __GFP_REPEAT in the tree. It seems that a good half of it is
and always has been bogus because __GFP_REPEAT has always been about
high order allocations while we are using it for order-0 or very small
orders very often. It seems that a big pile of them is just a copy&paste
when a code has been adopted from one arch to another.

I think it makes some sense to get rid of them because they are just
making the semantic more unclear.

The series is based on linux-next tree and
$ git grep __GFP_REPEAT next/master | wc -l
106

and with the patch
$ git grep __GFP_REPEAT  | wc -l
44

There are probably more users which do not need the flag but I have focused
on the trivially superfluous ones here.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 0/3] __GFP_REPEAT cleanup mhocko@kernel.org - 2015-11-05 17:20 +0100
  [PATCH 1/3] tree wide: get rid of __GFP_REPEAT for order-0 allocations part I mhocko@kernel.org - 2015-11-05 17:20 +0100
    Re: [PATCH 1/3] tree wide: get rid of __GFP_REPEAT for order-0  allocations part I Vlastimil Babka <vbabka@suse.cz> - 2015-11-09 23:10 +0100
      Re: [PATCH 1/3] tree wide: get rid of __GFP_REPEAT for order-0  allocations part I Michal Hocko <mhocko@kernel.org> - 2015-11-10 14:00 +0100
  [PATCH 2/3] tree wide: get rid of __GFP_REPEAT for small order requests mhocko@kernel.org - 2015-11-05 17:20 +0100

csiph-web