[RHEL7,COMMIT] fuse kio: Declare pcs_sockio::parent type

Submitted by Konstantin Khorenko on May 28, 2018, 3:38 p.m.

Details

Message ID 201805281538.w4SFcvlC030258@finist_ce7.work
State New
Series "fuse kio: Declare pcs_sockio::parent type"
Headers show

Commit Message

Konstantin Khorenko May 28, 2018, 3:38 p.m.
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@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@virtuozzo.com>
    Reviewed-by: Pavel Butsykin <pbutsykin@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(-)

Patch hide | download patch | download mbox

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;