not overwriting file_lock structure after GET_LK
authorPavel Shilovsky <piastryyy@gmail.com>
Mon, 5 Apr 2010 05:59:14 +0000 (09:59 +0400)
committerSteve French <sfrench@us.ibm.com>
Tue, 6 Apr 2010 17:24:26 +0000 (17:24 +0000)
commitf05337c6ac48d19d354e0640a8eb8fc884f82bcc
tree7be4407febc50dba022112281f1f6d04eb2a5a22
parent6513a81e9325d712f1bfb9a1d7b750134e49ff18
not overwriting file_lock structure after GET_LK

If we have preventing lock, cifs should overwrite file_lock structure
with info about preventing lock. If we haven't preventing lock, cifs
should leave it unchanged except for the lock type (change it to F_UNLCK).

Signed-off-by: Pavel Shilovsky <piastryyy@gmail.com>
Reviewed-by: Jeff Layton <jlayton@samba.org>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifssmb.c
fs/cifs/file.c