diff options
author | Steve French <sfrench@us.ibm.com> | 2005-12-12 23:53:18 -0500 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2005-12-12 23:53:18 -0500 |
commit | ec637e3ffb6b978143652477c7c5f96c9519b691 (patch) | |
tree | 32533b8f101e1d85b3499050eef29e78480e5cae /fs/cifs/cifsglob.h | |
parent | c89a86bb96307019867d11874ef0b86adaa0598e (diff) |
[CIFS] Avoid extra large buffer allocation (and memcpy) in cifs_readpages
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index c011c278af4..862e403ff21 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -285,6 +285,7 @@ struct cifs_search_info { | |||
285 | unsigned endOfSearch:1; | 285 | unsigned endOfSearch:1; |
286 | unsigned emptyDir:1; | 286 | unsigned emptyDir:1; |
287 | unsigned unicode:1; | 287 | unsigned unicode:1; |
288 | unsigned smallBuf:1; /* so we know which buf_release function to call */ | ||
288 | }; | 289 | }; |
289 | 290 | ||
290 | struct cifsFileInfo { | 291 | struct cifsFileInfo { |
@@ -420,7 +421,12 @@ struct dir_notify_req { | |||
420 | #define MID_RESPONSE_RECEIVED 4 | 421 | #define MID_RESPONSE_RECEIVED 4 |
421 | #define MID_RETRY_NEEDED 8 /* session closed while this request out */ | 422 | #define MID_RETRY_NEEDED 8 /* session closed while this request out */ |
422 | #define MID_NO_RESP_NEEDED 0x10 | 423 | #define MID_NO_RESP_NEEDED 0x10 |
423 | #define MID_SMALL_BUFFER 0x20 /* 112 byte response buffer instead of 4K */ | 424 | |
425 | /* Types of response buffer returned from SendReceive2 */ | ||
426 | #define CIFS_NO_BUFFER 0 /* Response buffer not returned */ | ||
427 | #define CIFS_SMALL_BUFFER 1 | ||
428 | #define CIFS_LARGE_BUFFER 2 | ||
429 | #define CIFS_IOVEC 4 /* array of response buffers */ | ||
424 | 430 | ||
425 | /* | 431 | /* |
426 | ***************************************************************** | 432 | ***************************************************************** |