]> git.baikalelectronics.ru Git - kernel.git/commit
vmcore: convert __read_vmcore to use an iov_iter
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 29 Apr 2022 21:37:59 +0000 (14:37 -0700)
committerakpm <akpm@linux-foundation.org>
Fri, 29 Apr 2022 21:37:59 +0000 (14:37 -0700)
commitf42f19bcb71a20e02ad3e3b33402298f208cde49
treeedcf49c83d7e2343a4b1c8efe5d49a6f1c74bec0
parentcce356ecfbbc05f9deffbeb5d831981d892d4aeb
vmcore: convert __read_vmcore to use an iov_iter

This gets rid of copy_to() and let us use proc_read_iter() instead of
proc_read().

Link: https://lkml.kernel.org/r/20220408090636.560886-3-bhe@redhat.com
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Baoquan He <bhe@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/vmcore.c