mm/memory_failure: Remove unused trapno from memory_failure
Today 4 architectures set ARCH_SUPPORTS_MEMORY_FAILURE (arm64, parisc, powerpc, and x86), while 4 other architectures set __ARCH_SI_TRAPNO (alpha, metag, sparc, and tile). These two sets of architectures do not interesect so remove the trapno paramater to remove confusion. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
This commit is contained in:
@@ -661,7 +661,7 @@ static int madvise_inject_error(int behavior,
|
||||
pr_info("Injecting memory failure for pfn %#lx at process virtual address %#lx\n",
|
||||
page_to_pfn(page), start);
|
||||
|
||||
ret = memory_failure(page_to_pfn(page), 0, MF_COUNT_INCREASED);
|
||||
ret = memory_failure(page_to_pfn(page), MF_COUNT_INCREASED);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user