BACKPORT: maccess: rename probe_kernel_address to get_kernel_nofault

Better describe what this helper does, and match the naming of
copy_from_kernel_nofault.

Also switch the argument order around, so that it acts and looks
like get_user().

Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Change-Id: Ia3e47b1cbf80a23b85dc408b3d90db770a27a3dd
This commit is contained in:
Christoph Hellwig 2020-06-17 09:37:55 +02:00 • committed by basamaryan
commit 2fbd504840
No known key found for this signature in database
GPG key ID: 210D5384FB2A5885
18 changed files with 36 additions and 36 deletions

View file

@ -855,7 +855,7 @@ static void md_dump_data(unsigned long addr, int nbytes, const char *name)
if (__is_lm_address(p) &&
kern_addr_valid((unsigned long)p) &&
page_accessible(page_to_pfn(virt_to_page(p))) &&
!probe_kernel_address(p, data))
!get_kernel_nofault(data, p))
seq_buf_printf(md_cntxt_seq_buf, " %08x",
data);
else