提交 beb84dc8 编写于 作者: S Steve French

[CIFS] Set correct lock type on new posix unlock call

Signed-off-by: NSteve French <sfrench@us.ibm.com>
上级 c6ee60b7
...@@ -698,7 +698,7 @@ int cifs_lock(struct file *file, int cmd, struct file_lock *pfLock) ...@@ -698,7 +698,7 @@ int cifs_lock(struct file *file, int cmd, struct file_lock *pfLock)
posix_lock_type = CIFS_WRLCK; posix_lock_type = CIFS_WRLCK;
if(numUnlock == 1) if(numUnlock == 1)
posix_lock_type |= CIFS_UNLCK; posix_lock_type = CIFS_UNLCK;
else if(numLock == 0) { else if(numLock == 0) {
/* if no lock or unlock then nothing /* if no lock or unlock then nothing
to do since we do not know what it is */ to do since we do not know what it is */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册