]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
mm/memory-failure: unnecessary amount of unmapping
authorJane Chu <jane.chu@oracle.com>
Fri, 30 Apr 2021 06:02:19 +0000 (23:02 -0700)
committerKelsey Skunberg <kelsey.skunberg@canonical.com>
Mon, 24 May 2021 23:46:44 +0000 (17:46 -0600)
commit56347d85329a9603e7cbd954c43ecfccf4d54207
tree292ae483ee3728200b33ff7058cf5c6fe3e06c9b
parent498700b8b77d2ff3e2b64b512f968822089ba729
mm/memory-failure: unnecessary amount of unmapping

BugLink: https://bugs.launchpad.net/bugs/1929455
[ Upstream commit 4d75136be8bf3ae01b0bc3e725b2cdc921e103bd ]

It appears that unmap_mapping_range() actually takes a 'size' as its third
argument rather than a location, the current calling fashion causes
unnecessary amount of unmapping to occur.

Link: https://lkml.kernel.org/r/20210420002821.2749748-1-jane.chu@oracle.com
Fixes: 6100e34b2526e ("mm, memory_failure: Teach memory_failure() about dev_pagemap pages")
Signed-off-by: Jane Chu <jane.chu@oracle.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Naoya Horiguchi <naoya.horiguchi@nec.com>
Cc: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
mm/memory-failure.c