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
Kirill Smelkov
linux
Commits
e333e800
Commit
e333e800
authored
Jul 30, 2003
by
Steve French
Committed by
Steve French
Jul 30, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Oplock flag reversed in create path
parent
ca84b31a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
fs/cifs/dir.c
fs/cifs/dir.c
+3
-3
No files found.
fs/cifs/dir.c
View file @
e333e800
...
...
@@ -125,7 +125,7 @@ cifs_create(struct inode *inode, struct dentry *direntry, int mode,
{
int
rc
=
-
ENOENT
;
int
xid
;
int
oplock
=
REQ_OPLOCK
;
int
oplock
=
0
;
int
desiredAccess
=
GENERIC_ALL
;
__u16
fileHandle
;
struct
cifs_sb_info
*
cifs_sb
;
...
...
@@ -155,7 +155,7 @@ cifs_create(struct inode *inode, struct dentry *direntry, int mode,
}
/* BB add processing to set equivalent of mode - e.g. via CreateX with ACLs */
if
(
!
oplockEnabled
)
if
(
oplockEnabled
)
oplock
=
REQ_OPLOCK
;
buf
=
kmalloc
(
sizeof
(
FILE_ALL_INFO
),
GFP_KERNEL
);
...
...
@@ -195,7 +195,7 @@ cifs_create(struct inode *inode, struct dentry *direntry, int mode,
write_lock
(
&
GlobalSMBSeslock
);
list_add
(
&
pCifsFile
->
tlist
,
&
pTcon
->
openFileList
);
pCifsInode
=
CIFS_I
(
newinode
);
if
(
pCifsInode
->
openFileList
.
next
)
if
(
pCifsInode
)
list_add
(
&
pCifsFile
->
flist
,
&
pCifsInode
->
openFileList
);
write_unlock
(
&
GlobalSMBSeslock
);
if
(
cifs_sb
->
tcon
->
ses
->
capabilities
&
CAP_UNIX
)
...
...
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