Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
aaa9bbe0
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
161
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
aaa9bbe0
编写于
5月 23, 2008
作者:
S
Steve French
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CIFS] remove unused variables
CC: Jeff Layton <jlayton@redhat.com> Signed-off-by:
N
Steve French
<
sfrench@us.ibm.com
>
上级
cbff2904
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
5 addition
and
20 deletion
+5
-20
fs/cifs/cifsglob.h
fs/cifs/cifsglob.h
+1
-2
fs/cifs/cifssmb.c
fs/cifs/cifssmb.c
+2
-4
fs/cifs/file.c
fs/cifs/file.c
+0
-7
fs/cifs/misc.c
fs/cifs/misc.c
+1
-2
fs/cifs/readdir.c
fs/cifs/readdir.c
+1
-5
未找到文件。
fs/cifs/cifsglob.h
浏览文件 @
aaa9bbe0
...
...
@@ -333,7 +333,6 @@ struct cifsFileInfo {
bool
messageMode
:
1
;
/* for pipes: message vs byte mode */
atomic_t
wrtPending
;
/* handle in use - defer close */
struct
semaphore
fh_sem
;
/* prevents reopen race after dead ses*/
char
*
search_resume_name
;
/* BB removeme BB */
struct
cifs_search_info
srch_inf
;
};
...
...
@@ -626,7 +625,7 @@ GLOBAL_EXTERN atomic_t tcpSesAllocCount;
GLOBAL_EXTERN
atomic_t
tcpSesReconnectCount
;
GLOBAL_EXTERN
atomic_t
tconInfoReconnectCount
;
/* Various Debug counters
to remove someday (BB)
*/
/* Various Debug counters */
GLOBAL_EXTERN
atomic_t
bufAllocCount
;
/* current number allocated */
#ifdef CONFIG_CIFS_STATS2
GLOBAL_EXTERN
atomic_t
totBufAllocCount
;
/* total allocated over all time */
...
...
fs/cifs/cifssmb.c
浏览文件 @
aaa9bbe0
...
...
@@ -1728,7 +1728,7 @@ CIFSSMBLock(const int xid, struct cifsTconInfo *tcon,
{
int
rc
=
0
;
LOCK_REQ
*
pSMB
=
NULL
;
LOCK_RSP
*
pSMBr
=
NULL
;
/* LOCK_RSP *pSMBr = NULL; */
/* No response data other than rc to parse */
int
bytes_returned
;
int
timeout
=
0
;
__u16
count
;
...
...
@@ -1739,8 +1739,6 @@ CIFSSMBLock(const int xid, struct cifsTconInfo *tcon,
if
(
rc
)
return
rc
;
pSMBr
=
(
LOCK_RSP
*
)
pSMB
;
/* BB removeme BB */
if
(
lockType
==
LOCKING_ANDX_OPLOCK_RELEASE
)
{
timeout
=
CIFS_ASYNC_OP
;
/* no response expected */
pSMB
->
Timeout
=
0
;
...
...
@@ -1774,7 +1772,7 @@ CIFSSMBLock(const int xid, struct cifsTconInfo *tcon,
if
(
waitFlag
)
{
rc
=
SendReceiveBlockingLock
(
xid
,
tcon
,
(
struct
smb_hdr
*
)
pSMB
,
(
struct
smb_hdr
*
)
pSMB
r
,
&
bytes_returned
);
(
struct
smb_hdr
*
)
pSMB
,
&
bytes_returned
);
cifs_small_buf_release
(
pSMB
);
}
else
{
rc
=
SendReceiveNoRsp
(
xid
,
tcon
->
ses
,
(
struct
smb_hdr
*
)
pSMB
,
...
...
fs/cifs/file.c
浏览文件 @
aaa9bbe0
...
...
@@ -546,7 +546,6 @@ int cifs_close(struct inode *inode, struct file *file)
msleep
(
timeout
);
timeout
*=
8
;
}
kfree
(
pSMBFile
->
search_resume_name
);
kfree
(
file
->
private_data
);
file
->
private_data
=
NULL
;
}
else
...
...
@@ -605,12 +604,6 @@ int cifs_closedir(struct inode *inode, struct file *file)
else
cifs_buf_release
(
ptmp
);
}
ptmp
=
pCFileStruct
->
search_resume_name
;
if
(
ptmp
)
{
cFYI
(
1
,
(
"closedir free resume name"
));
pCFileStruct
->
search_resume_name
=
NULL
;
kfree
(
ptmp
);
}
kfree
(
file
->
private_data
);
file
->
private_data
=
NULL
;
}
...
...
fs/cifs/misc.c
浏览文件 @
aaa9bbe0
...
...
@@ -519,8 +519,7 @@ is_valid_oplock_break(struct smb_hdr *buf, struct TCP_Server_Info *srv)
pnotify
=
(
struct
file_notify_information
*
)
((
char
*
)
&
pSMBr
->
hdr
.
Protocol
+
data_offset
);
cFYI
(
1
,
(
"dnotify on %s Action: 0x%x"
,
pnotify
->
FileName
,
pnotify
->
Action
));
/* BB removeme BB */
pnotify
->
FileName
,
pnotify
->
Action
));
/* cifs_dump_mem("Rcvd notify Data: ",buf,
sizeof(struct smb_hdr)+60); */
return
true
;
...
...
fs/cifs/readdir.c
浏览文件 @
aaa9bbe0
...
...
@@ -675,8 +675,6 @@ static int find_cifs_entry(const int xid, struct cifsTconInfo *pTcon,
cifsFile
->
invalidHandle
=
true
;
CIFSFindClose
(
xid
,
pTcon
,
cifsFile
->
netfid
);
}
kfree
(
cifsFile
->
search_resume_name
);
cifsFile
->
search_resume_name
=
NULL
;
if
(
cifsFile
->
srch_inf
.
ntwrk_buf_start
)
{
cFYI
(
1
,
(
"freeing SMB ff cache buf on search rewind"
));
if
(
cifsFile
->
srch_inf
.
smallBuf
)
...
...
@@ -1043,9 +1041,7 @@ int cifs_readdir(struct file *file, void *direntry, filldir_t filldir)
}
/* else {
cifsFile->invalidHandle = true;
CIFSFindClose(xid, pTcon, cifsFile->netfid);
}
kfree(cifsFile->search_resume_name);
cifsFile->search_resume_name = NULL; */
} */
rc
=
find_cifs_entry
(
xid
,
pTcon
,
file
,
&
current_entry
,
&
num_to_fill
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录