[Devel] [PATCH RHEL7 COMMIT] fuse kio: Unexport pcs_ioconn_close() and pcs_ioconn_unregister()

Konstantin Khorenko khorenko at virtuozzo.com
Mon Oct 29 11:53:39 MSK 2018


The commit is pushed to "branch-rh7-3.10.0-862.14.4.vz7.72.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-862.14.4.vz7.72.14
------>
commit 9a6bedb42fd180ce88b032b1107beb11bdb9a1fa
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date:   Mon Oct 29 11:53:37 2018 +0300

    fuse kio: Unexport pcs_ioconn_close() and pcs_ioconn_unregister()
    
    They are used only in the file they are declared.
    
    Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
    Reviewed-by: Pavel Butsykin <pbutsykin at virtuozzo.com>
---
 fs/fuse/kio/pcs/pcs_sock_io.c | 4 ++--
 fs/fuse/kio/pcs/pcs_sock_io.h | 5 -----
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/fs/fuse/kio/pcs/pcs_sock_io.c b/fs/fuse/kio/pcs/pcs_sock_io.c
index 04b63b58dad6..ede71c255084 100644
--- a/fs/fuse/kio/pcs/pcs_sock_io.c
+++ b/fs/fuse/kio/pcs/pcs_sock_io.c
@@ -42,13 +42,13 @@ void sio_push(struct pcs_sockio * sio)
 //// caseB: kernelspace want to close socket and have to somehow
 ////	    notify about this to userspace (NEW API REQUIRED)
 static void pcs_restore_sockets(struct pcs_ioconn *ioconn);
-void pcs_ioconn_unregister(struct pcs_ioconn *ioconn)
+static void pcs_ioconn_unregister(struct pcs_ioconn *ioconn)
 {
 	if (!test_bit(PCS_IOCONN_BF_DEAD, &ioconn->flags))
 		set_bit(PCS_IOCONN_BF_DEAD, &ioconn->flags);
 }
 
-void pcs_ioconn_close(struct pcs_ioconn *ioconn)
+static void pcs_ioconn_close(struct pcs_ioconn *ioconn)
 {
 	kernel_sock_shutdown(ioconn->socket, SHUT_RDWR);
 }
diff --git a/fs/fuse/kio/pcs/pcs_sock_io.h b/fs/fuse/kio/pcs/pcs_sock_io.h
index 30771170b84c..7795212045c2 100644
--- a/fs/fuse/kio/pcs/pcs_sock_io.h
+++ b/fs/fuse/kio/pcs/pcs_sock_io.h
@@ -231,9 +231,4 @@ struct bufqueue;
 */
 struct pcs_msg* bufqueue_as_pcs_output_msg(struct bufqueue *bq, u32 size);
 
-
-void pcs_ioconn_unregister(struct pcs_ioconn *ioconn);
-void pcs_ioconn_close(struct pcs_ioconn *ioconn);
-
-
 #endif /* _PCS_SOCK_IO_H_ */



More information about the Devel mailing list