diff options
Diffstat (limited to 'fs/cifs/file.c')
-rw-r--r-- | fs/cifs/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 5ae061c4ca25..e2d7b6bada6f 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c | |||
@@ -981,7 +981,7 @@ static ssize_t cifs_write(struct cifsFileInfo *open_file, | |||
981 | if (rc != 0) | 981 | if (rc != 0) |
982 | break; | 982 | break; |
983 | } | 983 | } |
984 | if (experimEnabled || (pTcon->ses->server && | 984 | if (sign_zero_copy || (pTcon->ses->server && |
985 | ((pTcon->ses->server->secMode & | 985 | ((pTcon->ses->server->secMode & |
986 | (SECMODE_SIGN_REQUIRED | SECMODE_SIGN_ENABLED)) | 986 | (SECMODE_SIGN_REQUIRED | SECMODE_SIGN_ENABLED)) |
987 | == 0))) { | 987 | == 0))) { |
@@ -1242,7 +1242,7 @@ static int cifs_writepages(struct address_space *mapping, | |||
1242 | } | 1242 | } |
1243 | 1243 | ||
1244 | tcon = tlink_tcon(open_file->tlink); | 1244 | tcon = tlink_tcon(open_file->tlink); |
1245 | if (!experimEnabled && tcon->ses->server->secMode & | 1245 | if (!sign_zero_copy && tcon->ses->server->secMode & |
1246 | (SECMODE_SIGN_REQUIRED | SECMODE_SIGN_ENABLED)) { | 1246 | (SECMODE_SIGN_REQUIRED | SECMODE_SIGN_ENABLED)) { |
1247 | cifsFileInfo_put(open_file); | 1247 | cifsFileInfo_put(open_file); |
1248 | kfree(iov); | 1248 | kfree(iov); |