]> git.baikalelectronics.ru Git - kernel.git/commit
kernfs: wire up ->splice_read and ->splice_write
authorChristoph Hellwig <hch@lst.de>
Wed, 20 Jan 2021 20:46:31 +0000 (21:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Jan 2021 17:30:28 +0000 (18:30 +0100)
commit083d32c4a046e7d4210d8dad3f53dbf844837fba
tree9df0c46298ea06821ad05d4cfd2ce1ab2e36ea38
parentcbf69b6eda4de67adda94381680d2e21e1328d78
kernfs: wire up ->splice_read and ->splice_write

Wire up the splice_read and splice_write methods to the default
helpers using ->read_iter and ->write_iter now that those are
implemented for kernfs.  This restores support to use splice and
sendfile on kernfs files.

Fixes: ec25677859f2 ("fs: don't allow splice read/write without explicit ops")
Reported-by: Siddharth Gupta <sidgup@codeaurora.org>
Tested-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210120204631.274206-4-hch@lst.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/kernfs/file.c