Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etercifs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etercifs
Commits
f0c1397c
Commit
f0c1397c
authored
Aug 13, 2012
by
Pavel Shilovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update 3.3 sources from stable (v3.3.8)
parent
f03c86f7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
cifsfs.c
sources/3.3/cifsfs.c
+1
-1
cifssmb.c
sources/3.3/cifssmb.c
+5
-1
file.c
sources/3.3/file.c
+9
-1
No files found.
sources/3.3/cifsfs.c
View file @
f0c1397c
...
...
@@ -706,7 +706,7 @@ static loff_t cifs_llseek(struct file *file, loff_t offset, int origin)
* origin == SEEK_END || SEEK_DATA || SEEK_HOLE => we must revalidate
* the cached file length
*/
if
(
origin
!=
SEEK_SET
||
origin
!=
SEEK_CUR
)
{
if
(
origin
!=
SEEK_SET
&&
origin
!=
SEEK_CUR
)
{
int
rc
;
struct
inode
*
inode
=
file
->
f_path
.
dentry
->
d_inode
;
...
...
sources/3.3/cifssmb.c
View file @
f0c1397c
...
...
@@ -4838,8 +4838,12 @@ parse_DFS_referrals(TRANSACTION2_GET_DFS_REFER_RSP *pSMBr,
max_len
=
data_end
-
temp
;
node
->
node_name
=
cifs_strndup_from_utf16
(
temp
,
max_len
,
is_unicode
,
nls_codepage
);
if
(
!
node
->
node_name
)
if
(
!
node
->
node_name
)
{
rc
=
-
ENOMEM
;
goto
parse_DFS_referrals_exit
;
}
ref
++
;
}
parse_DFS_referrals_exit:
...
...
sources/3.3/file.c
View file @
f0c1397c
...
...
@@ -841,13 +841,21 @@ cifs_posix_lock_set(struct file *file, struct file_lock *flock)
if
((
flock
->
fl_flags
&
FL_POSIX
)
==
0
)
return
rc
;
try_again:
mutex_lock
(
&
cinode
->
lock_mutex
);
if
(
!
cinode
->
can_cache_brlcks
)
{
mutex_unlock
(
&
cinode
->
lock_mutex
);
return
rc
;
}
rc
=
posix_lock_file_wait
(
file
,
flock
);
rc
=
posix_lock_file
(
file
,
flock
,
NULL
);
mutex_unlock
(
&
cinode
->
lock_mutex
);
if
(
rc
==
FILE_LOCK_DEFERRED
)
{
rc
=
wait_event_interruptible
(
flock
->
fl_wait
,
!
flock
->
fl_next
);
if
(
!
rc
)
goto
try_again
;
locks_delete_block
(
flock
);
}
return
rc
;
}
...
...
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