Re: [PATCH] mm: Merge pte_mkhuge() call into arch_make_huge_pte()

2022-02-03 Thread Catalin Marinas
On Wed, Feb 02, 2022 at 11:08:06AM +0530, Anshuman Khandual wrote: > Each call into pte_mkhuge() is invariably followed by arch_make_huge_pte(). > Instead arch_make_huge_pte() can accommodate pte_mkhuge() at the beginning. > This updates generic fallback stub for arch_make_huge_pte() and available

Re: [PATCH] mm: Merge pte_mkhuge() call into arch_make_huge_pte()

2022-02-02 Thread Mike Kravetz
On 2/1/22 21:38, Anshuman Khandual wrote: > Each call into pte_mkhuge() is invariably followed by arch_make_huge_pte(). > Instead arch_make_huge_pte() can accommodate pte_mkhuge() at the beginning. > This updates generic fallback stub for arch_make_huge_pte() and available > platforms definitions.

Re: [PATCH] mm: Merge pte_mkhuge() call into arch_make_huge_pte()

2022-02-02 Thread Anshuman Khandual
On 2/2/22 11:50 AM, Christophe Leroy wrote: > > Le 02/02/2022 à 06:38, Anshuman Khandual a écrit : >> Each call into pte_mkhuge() is invariably followed by arch_make_huge_pte(). >> Instead arch_make_huge_pte() can accommodate pte_mkhuge() at the beginning. >> This updates generic fallback stub

Re: [PATCH] mm: Merge pte_mkhuge() call into arch_make_huge_pte()

2022-02-01 Thread Mike Rapoport
On Wed, Feb 02, 2022 at 06:25:31AM +, Christophe Leroy wrote: > > > Le 02/02/2022 à 07:18, Mike Rapoport a écrit : > > On Wed, Feb 02, 2022 at 11:08:06AM +0530, Anshuman Khandual wrote: > >> Each call into pte_mkhuge() is invariably followed by arch_make_huge_pte(). > >> Instead

Re: [PATCH] mm: Merge pte_mkhuge() call into arch_make_huge_pte()

2022-02-01 Thread Christophe Leroy
Le 02/02/2022 à 07:18, Mike Rapoport a écrit : > On Wed, Feb 02, 2022 at 11:08:06AM +0530, Anshuman Khandual wrote: >> Each call into pte_mkhuge() is invariably followed by arch_make_huge_pte(). >> Instead arch_make_huge_pte() can accommodate pte_mkhuge() at the beginning. >> This updates

Re: [PATCH] mm: Merge pte_mkhuge() call into arch_make_huge_pte()

2022-02-01 Thread Christophe Leroy
Le 02/02/2022 à 06:38, Anshuman Khandual a écrit : > Each call into pte_mkhuge() is invariably followed by arch_make_huge_pte(). > Instead arch_make_huge_pte() can accommodate pte_mkhuge() at the beginning. > This updates generic fallback stub for arch_make_huge_pte() and available > platforms

Re: [PATCH] mm: Merge pte_mkhuge() call into arch_make_huge_pte()

2022-02-01 Thread Mike Rapoport
On Wed, Feb 02, 2022 at 11:08:06AM +0530, Anshuman Khandual wrote: > Each call into pte_mkhuge() is invariably followed by arch_make_huge_pte(). > Instead arch_make_huge_pte() can accommodate pte_mkhuge() at the beginning. > This updates generic fallback stub for arch_make_huge_pte() and available

[PATCH] mm: Merge pte_mkhuge() call into arch_make_huge_pte()

2022-02-01 Thread Anshuman Khandual
Each call into pte_mkhuge() is invariably followed by arch_make_huge_pte(). Instead arch_make_huge_pte() can accommodate pte_mkhuge() at the beginning. This updates generic fallback stub for arch_make_huge_pte() and available platforms definitions. This makes huge pte creation much cleaner and