mirror of https://gitee.com/openkylin/linux.git
CIFS: Separate protocol specific part from setlk
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
This commit is contained in:
parent
55157dfbb5
commit
7f92447aa7
|
@ -1357,8 +1357,8 @@ cifs_setlk(struct file *file, struct file_lock *flock, __u32 type,
|
||||||
if (rc <= 0)
|
if (rc <= 0)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
rc = CIFSSMBLock(xid, tcon, netfid, current->tgid, length,
|
rc = cifs_mandatory_lock(xid, cfile, flock->fl_start, length,
|
||||||
flock->fl_start, 0, 1, type, wait_flag, 0);
|
type, 1, 0, wait_flag);
|
||||||
if (rc) {
|
if (rc) {
|
||||||
kfree(lock);
|
kfree(lock);
|
||||||
goto out;
|
goto out;
|
||||||
|
|
Loading…
Reference in New Issue