Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1390163 > unrolled thread
| Started by | Michal Hocko <mhocko@kernel.org> |
|---|---|
| First post | 2016-04-28 15:30 +0200 |
| Last post | 2016-04-28 18:30 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 15/20] tile: get rid of superfluous __GFP_REPEAT Michal Hocko <mhocko@kernel.org> - 2016-04-28 15:30 +0200
Re: [PATCH 15/20] tile: get rid of superfluous __GFP_REPEAT Chris Metcalf <cmetcalf@mellanox.com> - 2016-04-28 18:30 +0200
| From | Michal Hocko <mhocko@kernel.org> |
|---|---|
| Date | 2016-04-28 15:30 +0200 |
| Subject | [PATCH 15/20] tile: get rid of superfluous __GFP_REPEAT |
| Message-ID | <rsUb0-3LP-19@gated-at.bofh.it> |
From: Michal Hocko <mhocko@suse.com>
__GFP_REPEAT has a rather weak semantic but since it has been introduced
around 2.6.12 it has been ignored for low order allocations.
pgtable_alloc_one uses __GFP_REPEAT flag for L2_USER_PGTABLE_ORDER but
the order is either 0 or 3 if L2_KERNEL_PGTABLE_SHIFT for HPAGE_SHIFT.
This means that this flag has never been actually useful here because it
has always been used only for PAGE_ALLOC_COSTLY requests.
Cc: Chris Metcalf <cmetcalf@mellanox.com>
Cc: linux-arch@vger.kernel.org
Signed-off-by: Michal Hocko <mhocko@suse.com>
---
arch/tile/mm/pgtable.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/tile/mm/pgtable.c b/arch/tile/mm/pgtable.c
index 7bf2491a9c1f..c4d5bf841a7f 100644
--- a/arch/tile/mm/pgtable.c
+++ b/arch/tile/mm/pgtable.c
@@ -231,7 +231,7 @@ void pgd_free(struct mm_struct *mm, pgd_t *pgd)
struct page *pgtable_alloc_one(struct mm_struct *mm, unsigned long address,
int order)
{
- gfp_t flags = GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO;
+ gfp_t flags = GFP_KERNEL|__GFP_ZERO;
struct page *p;
int i;
--
2.8.0.rc3
[toc] | [next] | [standalone]
| From | Chris Metcalf <cmetcalf@mellanox.com> |
|---|---|
| Date | 2016-04-28 18:30 +0200 |
| Message-ID | <rsWZd-6O9-19@gated-at.bofh.it> |
| In reply to | #1390163 |
On 4/28/2016 9:24 AM, Michal Hocko wrote: > From: Michal Hocko<mhocko@suse.com> > > __GFP_REPEAT has a rather weak semantic but since it has been introduced > around 2.6.12 it has been ignored for low order allocations. > > pgtable_alloc_one uses __GFP_REPEAT flag for L2_USER_PGTABLE_ORDER but > the order is either 0 or 3 if L2_KERNEL_PGTABLE_SHIFT for HPAGE_SHIFT. > This means that this flag has never been actually useful here because it > has always been used only for PAGE_ALLOC_COSTLY requests. > > Cc: Chris Metcalf<cmetcalf@mellanox.com> > Cc:linux-arch@vger.kernel.org > Signed-off-by: Michal Hocko<mhocko@suse.com> > --- > arch/tile/mm/pgtable.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) This seems OK as far as I can tell from code review. Acked-by: Chris Metcalf <cmetcalf@mellanox.com> [for tile] -- Chris Metcalf, Mellanox Technologies http://www.mellanox.com
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web