Re: [PATCH 07/15] mm: Make prep_transhuge_page tail-callable

2019-09-26 Thread Kirill A. Shutemov
On Tue, Sep 24, 2019 at 05:52:06PM -0700, Matthew Wilcox wrote: > From: "Matthew Wilcox (Oracle)" > > By permitting NULL or order-0 pages as an argument, and returning the > argument, callers can write: > > return prep_transhuge_page(alloc_pages(...)); > > instead of assigning the result

[PATCH 07/15] mm: Make prep_transhuge_page tail-callable

2019-09-24 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" By permitting NULL or order-0 pages as an argument, and returning the argument, callers can write: return prep_transhuge_page(alloc_pages(...)); instead of assigning the result to a temporary variable and conditionally passing that to