Skip to content

Commit

Permalink
CIFS: Separate protocol specific part from setlk
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
  • Loading branch information
piastry committed May 17, 2012
1 parent 55157df commit 7f92447
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/cifs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7f92447

Please sign in to comment.