[Devel] [PATCH RHEL7 COMMIT] fuse kio: Declare pcs_sockio::parent type

Konstantin Khorenko khorenko at virtuozzo.com
Mon May 28 18:38:57 MSK 2018


The commit is pushed to "branch-rh7-3.10.0-693.21.1.vz7.50.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-693.21.1.vz7.50.2
------>
commit 42767c7665b55dd5910424e4b53a927f951a7d70
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date:   Mon May 28 18:38:57 2018 +0300

    fuse kio: Declare pcs_sockio::parent type
    
    It's always struct pcs_rpc, so there is no a reason
    to keep it unnamed.
    
    Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
    Reviewed-by: Pavel Butsykin <pbutsykin at virtuozzo.com>
---
 fs/fuse/kio/pcs/pcs_rpc.c     | 2 +-
 fs/fuse/kio/pcs/pcs_sock_io.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/fuse/kio/pcs/pcs_rpc.c b/fs/fuse/kio/pcs/pcs_rpc.c
index 2ec7423a3f54..966779749083 100644
--- a/fs/fuse/kio/pcs/pcs_rpc.c
+++ b/fs/fuse/kio/pcs/pcs_rpc.c
@@ -497,7 +497,7 @@ void rpc_work_input(struct pcs_msg * msg)
 
 struct pcs_msg * rpc_get_hdr(struct pcs_sockio * sio)
 {
-	struct pcs_rpc * ep = (struct pcs_rpc *)sio->parent;
+	struct pcs_rpc * ep = sio->parent;
 	struct pcs_rpc_hdr * h = (struct pcs_rpc_hdr*)sio_inline_buffer(sio);
 	struct pcs_msg * msg;
 	void (*next_input)(struct pcs_msg *);
diff --git a/fs/fuse/kio/pcs/pcs_sock_io.h b/fs/fuse/kio/pcs/pcs_sock_io.h
index c1dfd422b360..af5443017de4 100644
--- a/fs/fuse/kio/pcs/pcs_sock_io.h
+++ b/fs/fuse/kio/pcs/pcs_sock_io.h
@@ -116,7 +116,7 @@ struct pcs_sockio
 	struct list_head	write_queue;
 	int			write_queue_len;
 	spinlock_t		q_lock;
-	void			*parent;
+	struct pcs_rpc		*parent;
 
 	pcs_error_t		error;
 	int			send_timeout;


More information about the Devel mailing list