commit | 7f92447aa7be605fd80d9f248efe0b8ac9379f11 | [log] [tgz] |
---|---|---|
author | Pavel Shilovsky <piastry@etersoft.ru> | Wed Mar 28 17:10:25 2012 +0400 |
committer | Pavel Shilovsky <piastry@etersoft.ru> | Thu May 17 13:07:48 2012 +0400 |
tree | 5bf3e1b298034b82519061763ac787624f8bb56a | |
parent | 55157dfbb566e23e3c76489cb028fc82bd985ea1 [diff] [blame] |
CIFS: Separate protocol specific part from setlk Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 9c2d85d..ed9b5a8 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c
@@ -1357,8 +1357,8 @@ 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;