From: Al Viro Date: Wed, 12 Oct 2016 23:23:50 +0000 (-0400) Subject: remove spd_release_page() X-Git-Tag: v4.12-rc1~132^2~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=23c832b10ca9ab2685d7d3e0990800ffc846fc92;p=karo-tx-linux.git remove spd_release_page() no users left Signed-off-by: Al Viro --- diff --git a/fs/splice.c b/fs/splice.c index 873d83104e79..bf17a92e26c3 100644 --- a/fs/splice.c +++ b/fs/splice.c @@ -244,11 +244,6 @@ ssize_t add_to_pipe(struct pipe_inode_info *pipe, struct pipe_buffer *buf) } EXPORT_SYMBOL(add_to_pipe); -void spd_release_page(struct splice_pipe_desc *spd, unsigned int i) -{ - put_page(spd->pages[i]); -} - /* * Check if we need to grow the arrays holding pages and partial page * descriptions. diff --git a/include/linux/splice.h b/include/linux/splice.h index 00a21166e268..647243bdd9d7 100644 --- a/include/linux/splice.h +++ b/include/linux/splice.h @@ -82,7 +82,6 @@ extern ssize_t splice_direct_to_actor(struct file *, struct splice_desc *, */ extern int splice_grow_spd(const struct pipe_inode_info *, struct splice_pipe_desc *); extern void splice_shrink_spd(struct splice_pipe_desc *); -extern void spd_release_page(struct splice_pipe_desc *, unsigned int); extern const struct pipe_buf_operations page_cache_pipe_buf_ops; extern const struct pipe_buf_operations default_pipe_buf_ops;