[CIFS] Missing parenthesis and typo in previous fix
authorSteve French <sfrench@us.ibm.com>
Wed, 30 Nov 2005 05:22:19 +0000 (21:22 -0800)
committerSteve French <sfrench@us.ibm.com>
Wed, 30 Nov 2005 05:22:19 +0000 (21:22 -0800)
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsfs.c
fs/cifs/inode.c

index f4974b41e485cd850939e3d5d6739cd1c60b4025..2a13a2bac8f18f9d957ac289c703d3e2e2904fe7 100644 (file)
@@ -921,7 +921,7 @@ static int cifs_dnotify_thread(void * dummyarg)
                        ses = list_entry(tmp, struct cifsSesInfo, 
                                cifsSessionList);
                        if(ses && ses->server && 
-                            atomic_read(&ses->server->inSend))
+                            atomic_read(&ses->server->inFlight))
                                wake_up_all(&ses->server->response_q);
                }
                read_unlock(&GlobalSMBSeslock);
index 053c1cadf7031b805e752a26488c04166bcd6074..e8773461c7f76d53be96eb935f88d807b203f376 100644 (file)
@@ -778,6 +778,7 @@ int cifs_mkdir(struct inode *inode, struct dentry *direntry, int mode)
                                                current->fsgid;
                                }
                        }
+               }
        }
        kfree(full_path);
        FreeXid(xid);
@@ -1124,7 +1125,7 @@ int cifs_setattr(struct dentry *direntry, struct iattr *attrs)
        cifs_sb = CIFS_SB(direntry->d_inode->i_sb);
        pTcon = cifs_sb->tcon;
 
-       if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_PERM == 0) {
+       if ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_PERM) == 0) {
                /* check if we have permission to change attrs */
                rc = inode_change_ok(direntry->d_inode, attrs);
                if(rc < 0) {