diff options
author | Pavel Shilovsky <piastry@etersoft.ru> | 2012-03-28 09:10:25 -0400 |
---|---|---|
committer | Pavel Shilovsky <piastry@etersoft.ru> | 2012-05-17 05:07:48 -0400 |
commit | 7f92447aa7be605fd80d9f248efe0b8ac9379f11 (patch) | |
tree | 5bf3e1b298034b82519061763ac787624f8bb56a /fs/cifs/file.c | |
parent | 55157dfbb566e23e3c76489cb028fc82bd985ea1 (diff) |
CIFS: Separate protocol specific part from setlk
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Diffstat (limited to 'fs/cifs/file.c')
-rw-r--r-- | fs/cifs/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 9c2d85d8e5e1..ed9b5a8fb51f 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c | |||
@@ -1357,8 +1357,8 @@ cifs_setlk(struct file *file, struct file_lock *flock, __u32 type, | |||
1357 | if (rc <= 0) | 1357 | if (rc <= 0) |
1358 | goto out; | 1358 | goto out; |
1359 | 1359 | ||
1360 | rc = CIFSSMBLock(xid, tcon, netfid, current->tgid, length, | 1360 | rc = cifs_mandatory_lock(xid, cfile, flock->fl_start, length, |
1361 | flock->fl_start, 0, 1, type, wait_flag, 0); | 1361 | type, 1, 0, wait_flag); |
1362 | if (rc) { | 1362 | if (rc) { |
1363 | kfree(lock); | 1363 | kfree(lock); |
1364 | goto out; | 1364 | goto out; |