summaryrefslogtreecommitdiffstats
path: root/sys/ofed
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2013-08-15 07:54:31 +0000
committerglebius <glebius@FreeBSD.org>2013-08-15 07:54:31 +0000
commit722a1a5e5d54a4935a4136368f443f6c88ca0d71 (patch)
tree72f140bc20e3f03e8744a0112282734ba89f474b /sys/ofed
parent8c7687b41c874820110a7106c1167f5b0e3fc7d0 (diff)
downloadFreeBSD-src-722a1a5e5d54a4935a4136368f443f6c88ca0d71.zip
FreeBSD-src-722a1a5e5d54a4935a4136368f443f6c88ca0d71.tar.gz
Make sendfile() a method in the struct fileops. Currently only
vnode backed file descriptors have this method implemented. Reviewed by: kib Sponsored by: Nginx, Inc. Sponsored by: Netflix
Diffstat (limited to 'sys/ofed')
-rw-r--r--sys/ofed/include/linux/linux_compat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/ofed/include/linux/linux_compat.c b/sys/ofed/include/linux/linux_compat.c
index 95bd6c8..4dbdad9 100644
--- a/sys/ofed/include/linux/linux_compat.c
+++ b/sys/ofed/include/linux/linux_compat.c
@@ -565,6 +565,7 @@ struct fileops linuxfileops = {
.fo_ioctl = linux_file_ioctl,
.fo_chmod = invfo_chmod,
.fo_chown = invfo_chown,
+ .fo_sendfile = invfo_sendfile,
};
/*
OpenPOWER on IntegriCloud