Re: [PATCH v3] mm/compaction: remove unnecessary order check in direct compact path

2016-06-20 Thread David Rientjes
On Thu, 16 Jun 2016, Ganesh Mahendran wrote: > diff --git a/mm/compaction.c b/mm/compaction.c > index fbb7b38..dcfaf57 100644 > --- a/mm/compaction.c > +++ b/mm/compaction.c > @@ -1686,12 +1686,16 @@ enum compact_result try_to_compact_pages(gfp_t > gfp_mask, unsigned int order, > >

Re: [PATCH v3] mm/compaction: remove unnecessary order check in direct compact path

2016-06-20 Thread David Rientjes
On Thu, 16 Jun 2016, Ganesh Mahendran wrote: > diff --git a/mm/compaction.c b/mm/compaction.c > index fbb7b38..dcfaf57 100644 > --- a/mm/compaction.c > +++ b/mm/compaction.c > @@ -1686,12 +1686,16 @@ enum compact_result try_to_compact_pages(gfp_t > gfp_mask, unsigned int order, > >

Re: [PATCH v3] mm/compaction: remove unnecessary order check in direct compact path

2016-06-16 Thread Michal Hocko
On Thu 16-06-16 10:42:36, Ganesh Mahendran wrote: > In direct compact path, both __alloc_pages_direct_compact and > try_to_compact_pages check (order == 0). > > This patch removes the check in __alloc_pages_direct_compact() and > move the modifying of current->flags to the entry point of direct >

Re: [PATCH v3] mm/compaction: remove unnecessary order check in direct compact path

2016-06-16 Thread Michal Hocko
On Thu 16-06-16 10:42:36, Ganesh Mahendran wrote: > In direct compact path, both __alloc_pages_direct_compact and > try_to_compact_pages check (order == 0). > > This patch removes the check in __alloc_pages_direct_compact() and > move the modifying of current->flags to the entry point of direct >

[PATCH v3] mm/compaction: remove unnecessary order check in direct compact path

2016-06-15 Thread Ganesh Mahendran
In direct compact path, both __alloc_pages_direct_compact and try_to_compact_pages check (order == 0). This patch removes the check in __alloc_pages_direct_compact() and move the modifying of current->flags to the entry point of direct page compaction where we really do the compaction.

[PATCH v3] mm/compaction: remove unnecessary order check in direct compact path

2016-06-15 Thread Ganesh Mahendran
In direct compact path, both __alloc_pages_direct_compact and try_to_compact_pages check (order == 0). This patch removes the check in __alloc_pages_direct_compact() and move the modifying of current->flags to the entry point of direct page compaction where we really do the compaction.