summaryrefslogtreecommitdiffstats
path: root/net/smc
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-05-20 17:58:14 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2020-05-20 12:11:26 -0400
commit76887c256744740d6121af9bc4aa787712a1f694 (patch)
treea55b809de66779126d5821d90c35679c312875df /net/smc
parent6797d97ab9d1b0ef94bf6063920669409dc2d730 (diff)
downloadlinux-76887c256744740d6121af9bc4aa787712a1f694.tar.gz
linux-76887c256744740d6121af9bc4aa787712a1f694.tar.bz2
linux-76887c256744740d6121af9bc4aa787712a1f694.zip
fs: make the pipe_buf_operations ->steal operation optional
Just return 1 for failure if it is not present. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'net/smc')
-rw-r--r--net/smc/smc_rx.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/net/smc/smc_rx.c b/net/smc/smc_rx.c
index 39d7b34d06d2..5fe25279702d 100644
--- a/net/smc/smc_rx.c
+++ b/net/smc/smc_rx.c
@@ -129,16 +129,9 @@ out:
sock_put(sk);
}
-static int smc_rx_pipe_buf_nosteal(struct pipe_inode_info *pipe,
- struct pipe_buffer *buf)
-{
- return 1;
-}
-
static const struct pipe_buf_operations smc_pipe_ops = {
.confirm = generic_pipe_buf_confirm,
.release = smc_rx_pipe_buf_release,
- .steal = smc_rx_pipe_buf_nosteal,
.get = generic_pipe_buf_get
};