aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/cifs/smb1ops.c3
-rw-r--r--fs/cifs/smb2ops.c3
2 files changed, 0 insertions, 6 deletions
diff --git a/fs/cifs/smb1ops.c b/fs/cifs/smb1ops.c
index f6c7a1c9a1b6..8727ef712a3c 100644
--- a/fs/cifs/smb1ops.c
+++ b/fs/cifs/smb1ops.c
@@ -442,9 +442,6 @@ cifs_negotiate_wsize(struct cifs_tcon *tcon, struct smb_vol *volume_info)
442 wsize = min_t(unsigned int, wsize, 442 wsize = min_t(unsigned int, wsize,
443 server->maxBuf - sizeof(WRITE_REQ) + 4); 443 server->maxBuf - sizeof(WRITE_REQ) + 4);
444 444
445 /* limit to the amount that we can kmap at once */
446 wsize = min_t(unsigned int, wsize, CIFS_KMAP_SIZE_LIMIT);
447
448 /* hard limit of CIFS_MAX_WSIZE */ 445 /* hard limit of CIFS_MAX_WSIZE */
449 wsize = min_t(unsigned int, wsize, CIFS_MAX_WSIZE); 446 wsize = min_t(unsigned int, wsize, CIFS_MAX_WSIZE);
450 447
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c
index 3a8c68258026..a621d6125367 100644
--- a/fs/cifs/smb2ops.c
+++ b/fs/cifs/smb2ops.c
@@ -187,9 +187,6 @@ smb2_negotiate_wsize(struct cifs_tcon *tcon, struct smb_vol *volume_info)
187 */ 187 */
188 wsize = min_t(unsigned int, wsize, 2 << 15); 188 wsize = min_t(unsigned int, wsize, 2 << 15);
189 189
190 /* limit to the amount that we can kmap at once */
191 wsize = min_t(unsigned int, wsize, CIFS_KMAP_SIZE_LIMIT);
192
193 return wsize; 190 return wsize;
194} 191}
195 192