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)
commit4a22fd20379ca897a6bfdb8372b4f9601e430332
treeedcf49c83d7e2343a4b1c8efe5d49a6f1c74bec0
parent5d8de293c224896a4da99763fce4f9794308caf4
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