Re: [PATCH 11/13] mm: cleanup the hmm_vma_handle_pmd stub

2019-08-01 Thread Christoph Hellwig
On Tue, Jul 30, 2019 at 05:53:14PM +, Jason Gunthorpe wrote: > > - /* If THP is not enabled then we should never reach this > > This old comment says we should never get here > > > +} > > +#else /* CONFIG_TRANSPARENT_HUGEPAGE */ > > +static int hmm_vma_handle_pmd(struct mm_walk *walk, unsi

Re: [PATCH 11/13] mm: cleanup the hmm_vma_handle_pmd stub

2019-07-30 Thread Jason Gunthorpe
On Tue, Jul 30, 2019 at 08:52:01AM +0300, Christoph Hellwig wrote: > Stub out the whole function when CONFIG_TRANSPARENT_HUGEPAGE is not set > to make the function easier to read. > > Signed-off-by: Christoph Hellwig > mm/hmm.c | 18 +- > 1 file changed, 9 insertions(+), 9 deleti

[PATCH 11/13] mm: cleanup the hmm_vma_handle_pmd stub

2019-07-30 Thread Christoph Hellwig
Stub out the whole function when CONFIG_TRANSPARENT_HUGEPAGE is not set to make the function easier to read. Signed-off-by: Christoph Hellwig --- mm/hmm.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/mm/hmm.c b/mm/hmm.c index 4d3bd41b6522..f4e90ea5779f 1