diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2014-04-05 04:35:49 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-06-12 00:21:11 -0400 |
commit | 96f9bc8fbc2440d90e15f02398e1de43f674b433 (patch) | |
tree | 75dff48f21edf53671dcd8fd23dd7bf7904a5cf4 /fs/splice.c | |
parent | 6dc8bc0fb300f6a878a4ed41ed833743a0dcf70e (diff) |
fs/splice.c: remove unneeded exports
ocfs2 was using a bunch of splice.c guts...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/splice.c')
-rw-r--r-- | fs/splice.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/fs/splice.c b/fs/splice.c index f195a9b89fb2..ab84051758a7 100644 --- a/fs/splice.c +++ b/fs/splice.c | |||
@@ -738,7 +738,7 @@ static int pipe_to_sendpage(struct pipe_inode_info *pipe, | |||
738 | * SPLICE_F_MOVE isn't set, or we cannot move the page, we simply create | 738 | * SPLICE_F_MOVE isn't set, or we cannot move the page, we simply create |
739 | * a new page in the output file page cache and fill/dirty that. | 739 | * a new page in the output file page cache and fill/dirty that. |
740 | */ | 740 | */ |
741 | int pipe_to_file(struct pipe_inode_info *pipe, struct pipe_buffer *buf, | 741 | static int pipe_to_file(struct pipe_inode_info *pipe, struct pipe_buffer *buf, |
742 | struct splice_desc *sd) | 742 | struct splice_desc *sd) |
743 | { | 743 | { |
744 | struct file *file = sd->u.file; | 744 | struct file *file = sd->u.file; |
@@ -773,7 +773,6 @@ int pipe_to_file(struct pipe_inode_info *pipe, struct pipe_buffer *buf, | |||
773 | out: | 773 | out: |
774 | return ret; | 774 | return ret; |
775 | } | 775 | } |
776 | EXPORT_SYMBOL(pipe_to_file); | ||
777 | 776 | ||
778 | static void wakeup_pipe_writers(struct pipe_inode_info *pipe) | 777 | static void wakeup_pipe_writers(struct pipe_inode_info *pipe) |
779 | { | 778 | { |
@@ -803,7 +802,7 @@ static void wakeup_pipe_writers(struct pipe_inode_info *pipe) | |||
803 | * locking is required around copying the pipe buffers to the | 802 | * locking is required around copying the pipe buffers to the |
804 | * destination. | 803 | * destination. |
805 | */ | 804 | */ |
806 | int splice_from_pipe_feed(struct pipe_inode_info *pipe, struct splice_desc *sd, | 805 | static int splice_from_pipe_feed(struct pipe_inode_info *pipe, struct splice_desc *sd, |
807 | splice_actor *actor) | 806 | splice_actor *actor) |
808 | { | 807 | { |
809 | int ret; | 808 | int ret; |
@@ -850,7 +849,6 @@ int splice_from_pipe_feed(struct pipe_inode_info *pipe, struct splice_desc *sd, | |||
850 | 849 | ||
851 | return 1; | 850 | return 1; |
852 | } | 851 | } |
853 | EXPORT_SYMBOL(splice_from_pipe_feed); | ||
854 | 852 | ||
855 | /** | 853 | /** |
856 | * splice_from_pipe_next - wait for some data to splice from | 854 | * splice_from_pipe_next - wait for some data to splice from |
@@ -862,7 +860,7 @@ EXPORT_SYMBOL(splice_from_pipe_feed); | |||
862 | * value (one) if pipe buffers are available. It will return zero | 860 | * value (one) if pipe buffers are available. It will return zero |
863 | * or -errno if no more data needs to be spliced. | 861 | * or -errno if no more data needs to be spliced. |
864 | */ | 862 | */ |
865 | int splice_from_pipe_next(struct pipe_inode_info *pipe, struct splice_desc *sd) | 863 | static int splice_from_pipe_next(struct pipe_inode_info *pipe, struct splice_desc *sd) |
866 | { | 864 | { |
867 | while (!pipe->nrbufs) { | 865 | while (!pipe->nrbufs) { |
868 | if (!pipe->writers) | 866 | if (!pipe->writers) |
@@ -887,7 +885,6 @@ int splice_from_pipe_next(struct pipe_inode_info *pipe, struct splice_desc *sd) | |||
887 | 885 | ||
888 | return 1; | 886 | return 1; |
889 | } | 887 | } |
890 | EXPORT_SYMBOL(splice_from_pipe_next); | ||
891 | 888 | ||
892 | /** | 889 | /** |
893 | * splice_from_pipe_begin - start splicing from pipe | 890 | * splice_from_pipe_begin - start splicing from pipe |
@@ -898,12 +895,11 @@ EXPORT_SYMBOL(splice_from_pipe_next); | |||
898 | * splice_from_pipe_next() and splice_from_pipe_feed() to | 895 | * splice_from_pipe_next() and splice_from_pipe_feed() to |
899 | * initialize the necessary fields of @sd. | 896 | * initialize the necessary fields of @sd. |
900 | */ | 897 | */ |
901 | void splice_from_pipe_begin(struct splice_desc *sd) | 898 | static void splice_from_pipe_begin(struct splice_desc *sd) |
902 | { | 899 | { |
903 | sd->num_spliced = 0; | 900 | sd->num_spliced = 0; |
904 | sd->need_wakeup = false; | 901 | sd->need_wakeup = false; |
905 | } | 902 | } |
906 | EXPORT_SYMBOL(splice_from_pipe_begin); | ||
907 | 903 | ||
908 | /** | 904 | /** |
909 | * splice_from_pipe_end - finish splicing from pipe | 905 | * splice_from_pipe_end - finish splicing from pipe |
@@ -915,12 +911,11 @@ EXPORT_SYMBOL(splice_from_pipe_begin); | |||
915 | * be called after a loop containing splice_from_pipe_next() and | 911 | * be called after a loop containing splice_from_pipe_next() and |
916 | * splice_from_pipe_feed(). | 912 | * splice_from_pipe_feed(). |
917 | */ | 913 | */ |
918 | void splice_from_pipe_end(struct pipe_inode_info *pipe, struct splice_desc *sd) | 914 | static void splice_from_pipe_end(struct pipe_inode_info *pipe, struct splice_desc *sd) |
919 | { | 915 | { |
920 | if (sd->need_wakeup) | 916 | if (sd->need_wakeup) |
921 | wakeup_pipe_writers(pipe); | 917 | wakeup_pipe_writers(pipe); |
922 | } | 918 | } |
923 | EXPORT_SYMBOL(splice_from_pipe_end); | ||
924 | 919 | ||
925 | /** | 920 | /** |
926 | * __splice_from_pipe - splice data from a pipe to given actor | 921 | * __splice_from_pipe - splice data from a pipe to given actor |