diff options
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/cifssmb.c | 7 | ||||
-rw-r--r-- | fs/cifs/connect.c | 8 |
2 files changed, 8 insertions, 7 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 38ab9f67c5f4..9d7bbd225eff 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c | |||
@@ -1076,13 +1076,14 @@ CIFSSMBRead(const int xid, struct cifsTconInfo *tcon, | |||
1076 | cifs_small_buf_release(iov[0].iov_base); | 1076 | cifs_small_buf_release(iov[0].iov_base); |
1077 | else if(resp_buf_type == CIFS_LARGE_BUFFER) | 1077 | else if(resp_buf_type == CIFS_LARGE_BUFFER) |
1078 | cifs_buf_release(iov[0].iov_base); | 1078 | cifs_buf_release(iov[0].iov_base); |
1079 | } else /* return buffer to caller to free */ /* BB FIXME how do we tell caller if it is not a large buffer */ { | 1079 | } else if(resp_buf_type != CIFS_NO_BUFFER) { |
1080 | *buf = iov[0].iov_base; | 1080 | /* return buffer to caller to free */ |
1081 | *buf = iov[0].iov_base; | ||
1081 | if(resp_buf_type == CIFS_SMALL_BUFFER) | 1082 | if(resp_buf_type == CIFS_SMALL_BUFFER) |
1082 | *pbuf_type = CIFS_SMALL_BUFFER; | 1083 | *pbuf_type = CIFS_SMALL_BUFFER; |
1083 | else if(resp_buf_type == CIFS_LARGE_BUFFER) | 1084 | else if(resp_buf_type == CIFS_LARGE_BUFFER) |
1084 | *pbuf_type = CIFS_LARGE_BUFFER; | 1085 | *pbuf_type = CIFS_LARGE_BUFFER; |
1085 | } | 1086 | } /* else no valid buffer on return - leave as null */ |
1086 | 1087 | ||
1087 | /* Note: On -EAGAIN error only caller can retry on handle based calls | 1088 | /* Note: On -EAGAIN error only caller can retry on handle based calls |
1088 | since file handle passed in no longer valid */ | 1089 | since file handle passed in no longer valid */ |
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 0e1560ac5ad7..16535b510a96 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
@@ -1795,10 +1795,10 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb, | |||
1795 | conjunction with 52K kvec constraint on arch with 4K | 1795 | conjunction with 52K kvec constraint on arch with 4K |
1796 | page size */ | 1796 | page size */ |
1797 | 1797 | ||
1798 | if(cifs_sb->rsize < PAGE_CACHE_SIZE) { | 1798 | if(cifs_sb->rsize < 2048) { |
1799 | cifs_sb->rsize = PAGE_CACHE_SIZE; | 1799 | cifs_sb->rsize = 2048; |
1800 | /* Windows ME does this */ | 1800 | /* Windows ME may prefer this */ |
1801 | cFYI(1,("Attempt to set readsize for mount to less than one page (4096)")); | 1801 | cFYI(1,("readsize set to minimum 2048")); |
1802 | } | 1802 | } |
1803 | cifs_sb->mnt_uid = volume_info.linux_uid; | 1803 | cifs_sb->mnt_uid = volume_info.linux_uid; |
1804 | cifs_sb->mnt_gid = volume_info.linux_gid; | 1804 | cifs_sb->mnt_gid = volume_info.linux_gid; |