[PATCH 2/3] vmcore: Convert __read_vmcore to use an iov_iter

Christoph Hellwig hch at lst.de
Mon Dec 13 00:00:31 PST 2021


On Mon, Dec 13, 2021 at 12:06:35AM +0000, Matthew Wilcox (Oracle) wrote:
> +	/* trim iter to not go beyond EOF */
> +	if (iter->count > vmcore_size - *fpos)
> +		iter->count = vmcore_size - *fpos;

Nit: iov_iter_truncate()

Otherwise this looks good from a cursory view.



More information about the kexec mailing list