Commit 164fff87 authored by René Scharfe's avatar René Scharfe Committed by Linus Torvalds

[PATCH] Some more stuff missed during the struct sock cleanup

The members of struct sock got a prefix of 'sk_' recently.

This patch updates smbfs to match the new world order.
parent cea83e2a
...@@ -900,10 +900,10 @@ smb_newconn(struct smb_sb_info *server, struct smb_conn_opt *opt) ...@@ -900,10 +900,10 @@ smb_newconn(struct smb_sb_info *server, struct smb_conn_opt *opt)
* Store the server in sock user_data (Only used by sunrpc) * Store the server in sock user_data (Only used by sunrpc)
*/ */
sk = SOCKET_I(filp->f_dentry->d_inode)->sk; sk = SOCKET_I(filp->f_dentry->d_inode)->sk;
sk->user_data = server; sk->sk_user_data = server;
/* chain into the data_ready callback */ /* chain into the data_ready callback */
server->data_ready = xchg(&sk->data_ready, smb_data_ready); server->data_ready = xchg(&sk->sk_data_ready, smb_data_ready);
/* check if we have an old smbmount that uses seconds for the /* check if we have an old smbmount that uses seconds for the
serverzone */ serverzone */
......
...@@ -68,7 +68,7 @@ _recvfrom(struct socket *socket, unsigned char *ubuf, int size, unsigned flags) ...@@ -68,7 +68,7 @@ _recvfrom(struct socket *socket, unsigned char *ubuf, int size, unsigned flags)
static struct smb_sb_info * static struct smb_sb_info *
server_from_socket(struct socket *socket) server_from_socket(struct socket *socket)
{ {
return socket->sk->user_data; return socket->sk->sk_user_data;
} }
/* /*
...@@ -77,7 +77,7 @@ server_from_socket(struct socket *socket) ...@@ -77,7 +77,7 @@ server_from_socket(struct socket *socket)
void void
smb_data_ready(struct sock *sk, int len) smb_data_ready(struct sock *sk, int len)
{ {
struct smb_sb_info *server = server_from_socket(sk->socket); struct smb_sb_info *server = server_from_socket(sk->sk_socket);
void (*data_ready)(struct sock *, int) = server->data_ready; void (*data_ready)(struct sock *, int) = server->data_ready;
data_ready(sk, len); data_ready(sk, len);
...@@ -117,7 +117,7 @@ smb_close_socket(struct smb_sb_info *server) ...@@ -117,7 +117,7 @@ smb_close_socket(struct smb_sb_info *server)
struct socket *sock = server_sock(server); struct socket *sock = server_sock(server);
VERBOSE("closing socket %p\n", sock); VERBOSE("closing socket %p\n", sock);
sock->sk->data_ready = server->data_ready; sock->sk->sk_data_ready = server->data_ready;
server->sock_file = NULL; server->sock_file = NULL;
fput(file); fput(file);
} }
...@@ -226,7 +226,7 @@ smb_receive_header(struct smb_sb_info *server) ...@@ -226,7 +226,7 @@ smb_receive_header(struct smb_sb_info *server)
sock = server_sock(server); sock = server_sock(server);
if (!sock) if (!sock)
goto out; goto out;
if (sock->sk->state != TCP_ESTABLISHED) if (sock->sk->sk_state != TCP_ESTABLISHED)
goto out; goto out;
if (!server->smb_read) { if (!server->smb_read) {
...@@ -290,7 +290,7 @@ smb_receive_drop(struct smb_sb_info *server) ...@@ -290,7 +290,7 @@ smb_receive_drop(struct smb_sb_info *server)
sock = server_sock(server); sock = server_sock(server);
if (!sock) if (!sock)
goto out; goto out;
if (sock->sk->state != TCP_ESTABLISHED) if (sock->sk->sk_state != TCP_ESTABLISHED)
goto out; goto out;
fs = get_fs(); fs = get_fs();
...@@ -345,7 +345,7 @@ smb_receive(struct smb_sb_info *server, struct smb_request *req) ...@@ -345,7 +345,7 @@ smb_receive(struct smb_sb_info *server, struct smb_request *req)
sock = server_sock(server); sock = server_sock(server);
if (!sock) if (!sock)
goto out; goto out;
if (sock->sk->state != TCP_ESTABLISHED) if (sock->sk->sk_state != TCP_ESTABLISHED)
goto out; goto out;
fs = get_fs(); fs = get_fs();
...@@ -400,7 +400,7 @@ smb_send_request(struct smb_request *req) ...@@ -400,7 +400,7 @@ smb_send_request(struct smb_request *req)
sock = server_sock(server); sock = server_sock(server);
if (!sock) if (!sock)
goto out; goto out;
if (sock->sk->state != TCP_ESTABLISHED) if (sock->sk->sk_state != TCP_ESTABLISHED)
goto out; goto out;
msg.msg_name = NULL; msg.msg_name = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment