Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
linux
Commits
e333e800
Commit
e333e800
authored
21 years ago
by
Steve French
Committed by
Steve French
21 years ago
Browse files
Options
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
)
...
...
This diff is collapsed.
Click to expand it.
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