Commit 5ae39e55 authored by Zwane Mwaikambo's avatar Zwane Mwaikambo Committed by Linus Torvalds

[PATCH] Remove smbfs server->rcls/err

This is a small cleanup requested by Urban, use the rcls/err in smb_request
as opposed to smb_sb_info.
Signed-off-by: default avatarZwane Mwaikambo <zwane@linuxpower.ca>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 7cb87888
...@@ -2370,7 +2370,7 @@ smb_proc_readdir_long(struct file *filp, void *dirent, filldir_t filldir, ...@@ -2370,7 +2370,7 @@ smb_proc_readdir_long(struct file *filp, void *dirent, filldir_t filldir,
if (req->rq_rcls != 0) { if (req->rq_rcls != 0) {
result = smb_errno(req); result = smb_errno(req);
PARANOIA("name=%s, result=%d, rcls=%d, err=%d\n", PARANOIA("name=%s, result=%d, rcls=%d, err=%d\n",
mask, result, server->rcls, server->err); mask, result, req->rq_rcls, req->rq_err);
break; break;
} }
...@@ -2526,7 +2526,7 @@ smb_proc_getattr_ff(struct smb_sb_info *server, struct dentry *dentry, ...@@ -2526,7 +2526,7 @@ smb_proc_getattr_ff(struct smb_sb_info *server, struct dentry *dentry,
result = smb_add_request(req); result = smb_add_request(req);
if (result < 0) if (result < 0)
goto out_free; goto out_free;
if (server->rcls != 0) { if (req->rq_rcls != 0) {
result = smb_errno(req); result = smb_errno(req);
#ifdef SMBFS_PARANOIA #ifdef SMBFS_PARANOIA
if (result != -ENOENT) if (result != -ENOENT)
...@@ -2639,7 +2639,7 @@ smb_proc_getattr_trans2(struct smb_sb_info *server, struct dentry *dir, ...@@ -2639,7 +2639,7 @@ smb_proc_getattr_trans2(struct smb_sb_info *server, struct dentry *dir,
result = smb_add_request(req); result = smb_add_request(req);
if (result < 0) if (result < 0)
goto out; goto out;
if (server->rcls != 0) { if (req->rq_rcls != 0) {
VERBOSE("for %s: result=%d, rcls=%d, err=%d\n", VERBOSE("for %s: result=%d, rcls=%d, err=%d\n",
&param[6], result, req->rq_rcls, req->rq_err); &param[6], result, req->rq_rcls, req->rq_err);
result = smb_errno(req); result = smb_errno(req);
...@@ -3218,7 +3218,7 @@ smb_proc_read_link(struct smb_sb_info *server, struct dentry *d, ...@@ -3218,7 +3218,7 @@ smb_proc_read_link(struct smb_sb_info *server, struct dentry *d,
if (result < 0) if (result < 0)
goto out_free; goto out_free;
DEBUG1("for %s: result=%d, rcls=%d, err=%d\n", DEBUG1("for %s: result=%d, rcls=%d, err=%d\n",
&param[6], result, server->rcls, server->err); &param[6], result, req->rq_rcls, req->rq_err);
/* copy data up to the \0 or buffer length */ /* copy data up to the \0 or buffer length */
result = len; result = len;
...@@ -3268,7 +3268,7 @@ smb_proc_symlink(struct smb_sb_info *server, struct dentry *d, ...@@ -3268,7 +3268,7 @@ smb_proc_symlink(struct smb_sb_info *server, struct dentry *d,
goto out_free; goto out_free;
DEBUG1("for %s: result=%d, rcls=%d, err=%d\n", DEBUG1("for %s: result=%d, rcls=%d, err=%d\n",
&param[6], result, server->rcls, server->err); &param[6], result, req->rq_rcls, req->rq_err);
result = 0; result = 0;
out_free: out_free:
...@@ -3315,7 +3315,7 @@ smb_proc_link(struct smb_sb_info *server, struct dentry *dentry, ...@@ -3315,7 +3315,7 @@ smb_proc_link(struct smb_sb_info *server, struct dentry *dentry,
goto out_free; goto out_free;
DEBUG1("for %s: result=%d, rcls=%d, err=%d\n", DEBUG1("for %s: result=%d, rcls=%d, err=%d\n",
&param[6], result, server->rcls, server->err); &param[6], result, req->rq_rcls, req->rq_err);
result = 0; result = 0;
out_free: out_free:
......
...@@ -60,9 +60,6 @@ struct smb_sb_info { ...@@ -60,9 +60,6 @@ struct smb_sb_info {
struct semaphore sem; struct semaphore sem;
unsigned short rcls; /* The error codes we received */
unsigned short err;
unsigned char header[SMB_HEADER_LEN + 20*2 + 2]; unsigned char header[SMB_HEADER_LEN + 20*2 + 2];
u32 header_len; u32 header_len;
u32 smb_len; u32 smb_len;
......
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