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
dd99cd80
Commit
dd99cd80
authored
Oct 05, 2005
by
Steve French
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CIFS] cleanup sparse and compile errors in previous fix
Signed-off-by: Steve French (sfrench@us.ibm.com)
parent
4a77118c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
fs/cifs/file.c
fs/cifs/file.c
+3
-2
fs/cifs/inode.c
fs/cifs/inode.c
+0
-2
No files found.
fs/cifs/file.c
View file @
dd99cd80
...
...
@@ -907,9 +907,10 @@ static ssize_t cifs_write(struct file *file, const char *write_data,
return
total_written
;
}
st
atic
st
ruct
cifsFileInfo
*
find_writable_file
(
struct
cifsInodeInfo
*
cifs_inode
)
struct
cifsFileInfo
*
find_writable_file
(
struct
cifsInodeInfo
*
cifs_inode
)
{
struct
cifsFileInfo
*
open_file
;
int
rc
;
read_lock
(
&
GlobalSMBSeslock
);
list_for_each_entry
(
open_file
,
&
cifs_inode
->
openFileList
,
flist
)
{
...
...
@@ -920,7 +921,7 @@ static struct cifsFileInfo *find_writable_file(struct cifsInodeInfo *cifs_inode)
(
open_file
->
pfile
->
f_flags
&
O_WRONLY
)))
{
read_unlock
(
&
GlobalSMBSeslock
);
if
(
open_file
->
invalidHandle
)
{
rc
=
cifs_reopen_file
(
cifs_inode
->
vfs_inode
,
rc
=
cifs_reopen_file
(
&
cifs_inode
->
vfs_inode
,
open_file
->
pfile
,
FALSE
);
/* if it fails, try another handle - might be */
/* dangerous to hold up writepages with retry */
...
...
fs/cifs/inode.c
View file @
dd99cd80
...
...
@@ -962,7 +962,6 @@ int cifs_setattr(struct dentry *direntry, struct iattr *attrs)
struct
cifsTconInfo
*
pTcon
;
char
*
full_path
=
NULL
;
int
rc
=
-
EACCES
;
int
found
=
FALSE
;
struct
cifsFileInfo
*
open_file
=
NULL
;
FILE_BASIC_INFO
time_buf
;
int
set_time
=
FALSE
;
...
...
@@ -970,7 +969,6 @@ int cifs_setattr(struct dentry *direntry, struct iattr *attrs)
__u64
uid
=
0xFFFFFFFFFFFFFFFFULL
;
__u64
gid
=
0xFFFFFFFFFFFFFFFFULL
;
struct
cifsInodeInfo
*
cifsInode
;
struct
list_head
*
tmp
;
xid
=
GetXid
();
...
...
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