OpenCloudOS-Kernel/fs/kernfs
Christoph Hellwig f2d6c2708b 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: 36e2c7421f ("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>
2021-01-21 18:30:28 +01:00
..
Kconfig
Makefile
dir.c fs/kernfs: remove the double check of dentry->inode 2020-12-09 19:03:49 +01:00
file.c kernfs: wire up ->splice_read and ->splice_write 2021-01-21 18:30:28 +01:00
inode.c
kernfs-internal.h
mount.c
symlink.c