diff options
author | Volker Lendecke <vl@samba.org> | 2008-11-02 12:20:47 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-11-02 16:58:19 +0100 |
commit | 2bab73a18d22284c68fefb091c3c6869898ef576 (patch) | |
tree | 580e5421b9bee4992235dc406b168f785c16713c /source3/smbd/aio.c | |
parent | f120038a1fcb34f19394c93981d41825a7720949 (diff) | |
download | samba-2bab73a18d22284c68fefb091c3c6869898ef576.tar.gz samba-2bab73a18d22284c68fefb091c3c6869898ef576.tar.xz samba-2bab73a18d22284c68fefb091c3c6869898ef576.zip |
Remove a bunch of direct inbuf references by adding "vwv" to smb_request
Diffstat (limited to 'source3/smbd/aio.c')
-rw-r--r-- | source3/smbd/aio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/aio.c b/source3/smbd/aio.c index c3fd0a2bc0e..aca7a192c3f 100644 --- a/source3/smbd/aio.c +++ b/source3/smbd/aio.c @@ -240,7 +240,7 @@ bool schedule_aio_read_and_X(connection_struct *conn, /* Only do this on non-chained and non-chaining reads not using the * write cache. */ - if (chain_size !=0 || (CVAL(req->inbuf,smb_vwv0) != 0xFF) + if (chain_size !=0 || (CVAL(req->vwv+0, 0) != 0xFF) || (lp_write_cache_size(SNUM(conn)) != 0) ) { return False; } @@ -311,7 +311,7 @@ bool schedule_aio_write_and_X(connection_struct *conn, struct aio_extra *aio_ex; SMB_STRUCT_AIOCB *a; size_t inbufsize, outbufsize; - bool write_through = BITSETW(req->inbuf+smb_vwv7,0); + bool write_through = BITSETW(req->vwv+7,0); size_t min_aio_write_size = lp_aio_write_size(SNUM(conn)); if (fsp->base_fsp != NULL) { @@ -332,7 +332,7 @@ bool schedule_aio_write_and_X(connection_struct *conn, /* Only do this on non-chained and non-chaining reads not using the * write cache. */ - if (chain_size !=0 || (CVAL(req->inbuf,smb_vwv0) != 0xFF) + if (chain_size !=0 || (CVAL(req->vwv+0, 0) != 0xFF) || (lp_write_cache_size(SNUM(conn)) != 0) ) { return False; } |