kernfs: implement ->read_iter
authorChristoph Hellwig <hch@lst.de>
Wed, 20 Jan 2021 20:46:29 +0000 (21:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jan 2021 10:55:29 +0000 (11:55 +0100)
commit6ce10b6481cd46040bf3c8f3daec08d3fafa30f4
treea32d69e6ff240a67fd56c1e636804e23c2babfb4
parent436bc4c45a586fd89831c8819be12f5c7be0498a
kernfs: implement ->read_iter

commit 4eaad21a6ac9865df7f31983232ed5928450458d upstream.

Switch kernfs to implement the read_iter method instead of plain old
read to prepare to supporting splice and sendfile again.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210120204631.274206-2-hch@lst.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/kernfs/file.c