summaryrefslogtreecommitdiff
path: root/fs/block_dev.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@sb.bsdonline.org>2002-07-27 21:24:07 +0200
committerChristoph Hellwig <hch@sb.bsdonline.org>2002-07-27 21:24:07 +0200
commit6b1ca206c66dbeeec380813cd183a09de839b4bd (patch)
tree266e666065c2d8da058f34856786be48fd8cce4e /fs/block_dev.c
parent46979afd7f43d0ef8d03c09023fb6ebf5196fc90 (diff)
VFS: implement sendfile file operation
Currently the sendfile syscalls hardcode assumptions about the implementation of the read file operations implementation. Although it checks for the presence of a readpage address-space operation filesystems in Linux are free to implement read differently from the generic version (generic_file_read). Many filesystems such as tmpfs, smbfs or xfs chose to implement it differently and need additional locking, revalidation or checks.
Diffstat (limited to 'fs/block_dev.c')
-rw-r--r--fs/block_dev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c
index 2a0304c00c77..2c1e6f35fae1 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -774,6 +774,7 @@ struct file_operations def_blk_fops = {
mmap: generic_file_mmap,
fsync: block_fsync,
ioctl: blkdev_ioctl,
+ sendfile: generic_file_sendfile,
};
int ioctl_by_bdev(struct block_device *bdev, unsigned cmd, unsigned long arg)