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
d77f569f
Commit
d77f569f
authored
May 24, 2016
by
Konstantin Artyushkin
Committed by
Pavel Shilovsky
Jul 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for 3.10.0-327.10.1.el7 CentOS 7
parent
010ed8ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cifsfs.c
sources/centos70/cifsfs.c
+3
-3
No files found.
sources/centos70/cifsfs.c
View file @
d77f569f
...
...
@@ -790,7 +790,7 @@ static loff_t cifs_llseek(struct file *file, loff_t offset, int whence)
return
generic_file_llseek
(
file
,
offset
,
whence
);
}
static
int
cifs_setlease
(
struct
file
*
file
,
long
arg
,
struct
file_lock
**
lease
)
static
int
cifs_setlease
(
struct
file
*
file
,
long
arg
,
struct
file_lock
**
lease
,
void
**
priv
)
{
/*
* Note that this is called by vfs setlease with i_lock held to
...
...
@@ -805,7 +805,7 @@ static int cifs_setlease(struct file *file, long arg, struct file_lock **lease)
/* check if file is oplocked */
if
(((
arg
==
F_RDLCK
)
&&
CIFS_CACHE_READ
(
CIFS_I
(
inode
)))
||
((
arg
==
F_WRLCK
)
&&
CIFS_CACHE_WRITE
(
CIFS_I
(
inode
))))
return
generic_setlease
(
file
,
arg
,
lease
);
return
generic_setlease
(
file
,
arg
,
lease
,
priv
)
);
else
if
(
tlink_tcon
(
cfile
->
tlink
)
->
local_lease
&&
!
CIFS_CACHE_READ
(
CIFS_I
(
inode
)))
/*
...
...
@@ -816,7 +816,7 @@ static int cifs_setlease(struct file *file, long arg, struct file_lock **lease)
* knows that the file won't be changed on the server by anyone
* else.
*/
return
generic_setlease
(
file
,
arg
,
lease
);
return
generic_setlease
(
file
,
arg
,
lease
,
priv
);
else
return
-
EAGAIN
;
}
...
...
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