From 55157dfbb566e23e3c76489cb028fc82bd985ea1 Mon Sep 17 00:00:00 2001 From: Pavel Shilovsky Date: Tue, 28 Feb 2012 14:04:17 +0300 Subject: CIFS: Separate protocol specific part from getlk Signed-off-by: Pavel Shilovsky --- fs/cifs/smb1ops.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'fs/cifs/smb1ops.c') diff --git a/fs/cifs/smb1ops.c b/fs/cifs/smb1ops.c index af48a8b8b75d..ce27f8698b20 100644 --- a/fs/cifs/smb1ops.c +++ b/fs/cifs/smb1ops.c @@ -60,8 +60,15 @@ send_nt_cancel(struct TCP_Server_Info *server, void *buf, return rc; } +static bool +cifs_compare_fids(struct cifsFileInfo *ob1, struct cifsFileInfo *ob2) +{ + return ob1->netfid == ob2->netfid; +} + struct smb_version_operations smb1_operations = { .send_cancel = send_nt_cancel, + .compare_fids = cifs_compare_fids, }; struct smb_version_values smb1_values = { -- cgit v1.2.2