From: Tao Ma <tao.ma@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH 4/4] ocfs2-1.6: add splice read/write support
Date: Fri, 12 Mar 2010 17:19:22 +0800 [thread overview]
Message-ID: <4B9A071A.3030706@oracle.com> (raw)
In-Reply-To: <1268384856-3929-1-git-send-email-tiger.yang@oracle.com>
Hi tiger,
Tiger Yang wrote:
> This patch copied splice code in mainline 2.6.29
> to allow support for splice io with enterprise
> kernels based on 2.6.18.
>
> Signed-off-by: Tiger Yang <tiger.yang@oracle.com>
> ---
> Config.make.in | 1 +
> configure.in | 10 ++-
> fs/ocfs2/Makefile | 7 +
> fs/ocfs2/compat_splice.c | 251 ++++++++++++++++++++++++++++++++++++++++++
> fs/ocfs2/file.c | 90 ++++-----------
> fs/ocfs2/xattr.c | 2 +-
> kapi-compat/include/splice.h | 21 ++++
> 7 files changed, 314 insertions(+), 68 deletions(-)
> create mode 100644 fs/ocfs2/compat_splice.c
> create mode 100644 kapi-compat/include/splice.h
> ifdef SKIP_BUFFER_TRIGGERS
> diff --git a/fs/ocfs2/compat_splice.c b/fs/ocfs2/compat_splice.c
> new file mode 100644
> index 0000000..9533d37
> --- /dev/null
> +++ b/fs/ocfs2/compat_splice.c
> @@ -0,0 +1,251 @@
> +/*
> + * compat_splice.c
> + *
> + * This code has been copied from mainline linux kernel 2.6.29
> + * to allow ocfs2 to build against older kernels. For license,
> + * refer to fs/splice.c in mainline linux kernel.
> + */
> +
> +void pipe_wait(struct pipe_inode_info *pipe)
I just see that el5 already has splice support, see
http://www.redhat.com/rhel/features/
So we still need to copy these functions back? At least in el5u2, I see
these functions like pipe_wait, pipe_to_file etc.
Regards,
Tao
next prev parent reply other threads:[~2010-03-12 9:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-12 9:05 [Ocfs2-devel] [PATCH 1/4] ocfs2-1.6: pipe operation pin() changes to confirm() Tiger Yang
2010-03-12 9:07 ` [Ocfs2-devel] [PATCH 2/4] ocfs2-1.6: Add inode_double_lock()/unlock() Tiger Yang
2010-03-12 9:07 ` [Ocfs2-devel] [PATCH 3/4] ocfs2-1.6: Add file_remove_suid() Tiger Yang
2010-03-12 9:07 ` [Ocfs2-devel] [PATCH 4/4] ocfs2-1.6: add splice read/write support Tiger Yang
2010-03-12 9:19 ` Tao Ma [this message]
2010-03-15 6:09 ` Tiger Yang
2010-03-15 6:32 ` Tao Ma
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B9A071A.3030706@oracle.com \
--to=tao.ma@oracle.com \
--cc=ocfs2-devel@oss.oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.