From: Jens Axboe Date: Mon, 1 May 2006 17:59:32 +0000 (+0200) Subject: [PATCH] Add ->splice_read/splice_write to def_blk_fops X-Git-Tag: MMI-PSA29.97-13-9~49880^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7f9c51f0d9783c78db5c2aa16806d0c256ac667f;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [PATCH] Add ->splice_read/splice_write to def_blk_fops It can use the generic handlers. Signed-off-by: Jens Axboe --- diff --git a/fs/block_dev.c b/fs/block_dev.c index af88c43043d5..f5958f413bd1 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -1104,6 +1104,8 @@ const struct file_operations def_blk_fops = { .readv = generic_file_readv, .writev = generic_file_write_nolock, .sendfile = generic_file_sendfile, + .splice_read = generic_file_splice_read, + .splice_write = generic_file_splice_write, }; int ioctl_by_bdev(struct block_device *bdev, unsigned cmd, unsigned long arg)