Re: [PATCH] sparc64: mm: fix copy_tsb to correctly copy huge page TSBs

2017-06-05 Thread David Miller
From: Mike Kravetz Date: Fri, 2 Jun 2017 14:51:12 -0700 > When a TSB grows beyond its current capacity, a new TSB is allocated > and copy_tsb is called to copy entries from the old TSB to the new. > A hash shift based on page size is used to calculate the index of an > entry in the TSB. copy_ts

[PATCH] sparc64: mm: fix copy_tsb to correctly copy huge page TSBs

2017-06-02 Thread Mike Kravetz
When a TSB grows beyond its current capacity, a new TSB is allocated and copy_tsb is called to copy entries from the old TSB to the new. A hash shift based on page size is used to calculate the index of an entry in the TSB. copy_tsb has hard coded PAGE_SHIFT in these calculations. However, for hu