]> 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)
commitdcb91cd1bedf626c5896f2b812ed2e89ee6072c3
treeedcf49c83d7e2343a4b1c8efe5d49a6f1c74bec0
parent95e40cf0f4c4d921cb7d1ee9316704fe379a4996
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