Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
41b2f9da
Commit
41b2f9da
authored
Aug 28, 2003
by
Steve French
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix oops in reconnection logic when no dentry for file being reconnected.
parent
ffaf4d4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
12 deletions
+21
-12
fs/cifs/CHANGES
fs/cifs/CHANGES
+6
-2
fs/cifs/file.c
fs/cifs/file.c
+15
-10
No files found.
fs/cifs/CHANGES
View file @
41b2f9da
Version 0.91
------------
Fix oops in reopen_files when invalid dentry.
Version 0.90
Version 0.90
------------
------------
Fix scheduling while atomic error in getting inode info on newly created file.
Fix truncate of existing files
Fix scheduling while atomic error in getting inode info on newly created file.
opened with O_CREAT set but O_TRUNC not
set.
Fix truncate of existing files opened with O_CREAT but not O_TRUNC
set.
Version 0.89
Version 0.89
------------
------------
...
...
fs/cifs/file.c
View file @
41b2f9da
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
*
*
* vfs operations that deal with files
* vfs operations that deal with files
*
*
* Copyright (
c) International Business Machines Corp., 2002
* Copyright (
C) International Business Machines Corp., 2002,2003
* Author(s): Steve French (sfrench@us.ibm.com)
* Author(s): Steve French (sfrench@us.ibm.com)
*
*
* This library is free software; you can redistribute it and/or modify
* This library is free software; you can redistribute it and/or modify
...
@@ -225,16 +225,21 @@ int reopen_files(struct cifsTconInfo * pTcon, struct nls_table * nlsinfo)
...
@@ -225,16 +225,21 @@ int reopen_files(struct cifsTconInfo * pTcon, struct nls_table * nlsinfo)
if
(
file
)
{
if
(
file
)
{
file
->
private_data
=
NULL
;
file
->
private_data
=
NULL
;
read_unlock
(
&
GlobalSMBSeslock
);
read_unlock
(
&
GlobalSMBSeslock
);
rc
=
cifs_open
(
file
->
f_dentry
->
d_inode
,
file
);
if
(
file
->
f_dentry
==
0
)
{
read_lock
(
&
GlobalSMBSeslock
);
cFYI
(
1
,(
"Null dentry for file %p"
,
file
));
if
(
rc
)
{
read_lock
(
&
GlobalSMBSeslock
);
cFYI
(
1
,(
"reconnecting file %s failed with %d"
,
file
->
f_dentry
->
d_name
.
name
,
rc
));
}
else
{
}
else
{
cFYI
(
1
,(
"reconnection of %s succeeded"
,
rc
=
cifs_open
(
file
->
f_dentry
->
d_inode
,
file
);
file
->
f_dentry
->
d_name
.
name
));
read_lock
(
&
GlobalSMBSeslock
);
}
if
(
rc
)
{
}
cFYI
(
1
,(
"reconnecting file %s failed with %d"
,
file
->
f_dentry
->
d_name
.
name
,
rc
));
}
else
{
cFYI
(
1
,(
"reconnection of %s succeeded"
,
file
->
f_dentry
->
d_name
.
name
));
}
}
}
}
}
}
}
read_unlock
(
&
GlobalSMBSeslock
);
read_unlock
(
&
GlobalSMBSeslock
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment