OSDN Git Service

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>
Thu, 21 Jan 2021 17:30:28 +0000 (18:30 +0100)
commit4eaad21a6ac9865df7f31983232ed5928450458d
tree2135bf094c992815cf190ac6420f81157b6a0498
parent895bee270863588fe3d46dca86cd15d461f47a7a
kernfs: implement ->read_iter

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