linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pieter Smith <pieter@boesman.nl>
To: pieter@boesman.nl
Cc: Josh Triplett <josh@joshtriplett.org>,
	Alexander Viro <viro@zeniv.linux.org.uk>,
	linux-fsdevel@vger.kernel.org,
	linux-kernel@vger.kernel.org (open list)
Subject: [PATCH 50/56] fs/read_write: support compiling out splice
Date: Thu, 13 Nov 2014 22:23:27 +0100	[thread overview]
Message-ID: <1415913813-362-51-git-send-email-pieter@boesman.nl> (raw)
In-Reply-To: <1415913813-362-1-git-send-email-pieter@boesman.nl>

Compile out splice support from read_write when the splice-family of syscalls
is not supported by the system (i.e. CONFIG_SYSCALL_SPLICE is undefined).

Signed-off-by: Pieter Smith <pieter@boesman.nl>
---
 fs/read_write.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/read_write.c b/fs/read_write.c
index 4361261..55dee62 100644
--- a/fs/read_write.c
+++ b/fs/read_write.c
@@ -32,7 +32,7 @@ const struct file_operations generic_ro_fops = {
 	.read		= new_sync_read,
 	.read_iter	= generic_file_read_iter,
 	.mmap		= generic_file_readonly_mmap,
-	.splice_read	= generic_file_splice_read,
+	SPLICE_READ_INIT(generic_file_splice_read)
 };
 
 EXPORT_SYMBOL(generic_ro_fops);
-- 
1.9.1

  parent reply	other threads:[~2014-11-13 21:23 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <pieter@boesman.nl>
     [not found] ` <1415913813-362-1-git-send-email-pieter@boesman.nl>
2014-11-13 21:22   ` [PATCH 01/56] moved sendfile syscall to splice translation unit Pieter Smith
2014-11-13 21:22   ` [PATCH 02/56] moved kernel_write out of " Pieter Smith
     [not found]   ` <1415913813-362-1-git-send-email-pieter-qeJ+1H9vRZbz+pZb47iToQ@public.gmane.org>
2014-11-13 21:22     ` [PATCH 03/56] fs: Support compiling out splice-family syscalls Pieter Smith
2014-11-13 21:22   ` [PATCH 04/56] fs: Macros to define splice file_operations Pieter Smith
2014-11-13 21:49     ` Richard Weinberger
2014-11-13 22:24       ` josh
2014-11-13 21:51     ` Al Viro
2014-11-13 21:22   ` [PATCH 07/56] fs/affs: support compiling out splice Pieter Smith
2014-11-13 21:22   ` [PATCH 09/56] fs/bad_inode: " Pieter Smith
2014-11-13 21:22   ` [PATCH 10/56] fs/block_dev: " Pieter Smith
2014-11-13 21:23   ` [PATCH 25/56] fs/hfs: " Pieter Smith
2014-11-13 21:23   ` [PATCH 26/56] fs/hfsplus: " Pieter Smith
2014-11-13 21:23   ` Pieter Smith [this message]
2014-11-13 21:23   ` [PATCH 56/56] fs/splice: full support for " Pieter Smith

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=1415913813-362-51-git-send-email-pieter@boesman.nl \
    --to=pieter@boesman.nl \
    --cc=josh@joshtriplett.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@zeniv.linux.org.uk \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).