Commit 7f92447a authored by Pavel Shilovsky's avatar Pavel Shilovsky

CIFS: Separate protocol specific part from setlk

Signed-off-by: default avatarPavel Shilovsky <piastry@etersoft.ru>
parent 55157dfb
......@@ -1357,8 +1357,8 @@ cifs_setlk(struct file *file, struct file_lock *flock, __u32 type,
if (rc <= 0)
goto out;
rc = CIFSSMBLock(xid, tcon, netfid, current->tgid, length,
flock->fl_start, 0, 1, type, wait_flag, 0);
rc = cifs_mandatory_lock(xid, cfile, flock->fl_start, length,
type, 1, 0, wait_flag);
if (rc) {
kfree(lock);
goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment