From: Pavel Shilovsky Subject: [PATCH v3 5/5] CIFS: Separate protocol specific part from setlk Date: Tue, 27 Mar 2012 15:38:39 +0400 Message-ID: <1332848319-6483-6-git-send-email-piastry@etersoft.ru> References: <1332848319-6483-1-git-send-email-piastry@etersoft.ru> To: linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Return-path: In-Reply-To: <1332848319-6483-1-git-send-email-piastry-7qunaywFIewox3rIn2DAYQ@public.gmane.org> Sender: linux-cifs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Signed-off-by: Pavel Shilovsky --- 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 8cd44e4..9ba62f0 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c @@ -1435,8 +1435,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; -- 1.7.1