Skip to content

Commit 2a138eb

Browse files
author
Steve French
committed
[CIFS] Missing parenthesis and typo in previous fix
Signed-off-by: Steve French <[email protected]>
1 parent 606c0da commit 2a138eb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

fs/cifs/cifsfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ static int cifs_dnotify_thread(void * dummyarg)
921921
ses = list_entry(tmp, struct cifsSesInfo,
922922
cifsSessionList);
923923
if(ses && ses->server &&
924-
atomic_read(&ses->server->inSend))
924+
atomic_read(&ses->server->inFlight))
925925
wake_up_all(&ses->server->response_q);
926926
}
927927
read_unlock(&GlobalSMBSeslock);

fs/cifs/inode.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,7 @@ int cifs_mkdir(struct inode *inode, struct dentry *direntry, int mode)
778778
current->fsgid;
779779
}
780780
}
781+
}
781782
}
782783
kfree(full_path);
783784
FreeXid(xid);
@@ -1124,7 +1125,7 @@ int cifs_setattr(struct dentry *direntry, struct iattr *attrs)
11241125
cifs_sb = CIFS_SB(direntry->d_inode->i_sb);
11251126
pTcon = cifs_sb->tcon;
11261127

1127-
if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_PERM == 0) {
1128+
if ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_PERM) == 0) {
11281129
/* check if we have permission to change attrs */
11291130
rc = inode_change_ok(direntry->d_inode, attrs);
11301131
if(rc < 0) {

0 commit comments

Comments
 (0)