On Wed, Nov 21, 2018 at 02:54:42PM -0700, Yu Zhao wrote:
We changed key of swap cache tree from swp_entry_t.val to swp_offset. Need to do so in shmem_replace_page() as well.
Fixes: f6ab1f7f6b2d ("mm, swap: use offset of swap entry as key of swap cache") Cc: stable@vger.kernel.org # v4.9+ Signed-off-by: Yu Zhao yuzhao@google.com
Reviewed-by: Matthew Wilcox willy@infradead.org