diff options
author | Volker Lendecke <vl@samba.org> | 2009-01-30 23:44:21 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-01-31 11:09:39 +0100 |
commit | d94e9c802ceddeff93168337b6fc5533db7f2d33 (patch) | |
tree | f38232bdd6402b386b2248793d99cc02eceb68e6 /source3/smbd/aio.c | |
parent | b99859b948f31dbe474b6ce0c6cab601e7e7bc56 (diff) | |
download | samba-d94e9c802ceddeff93168337b6fc5533db7f2d33.tar.gz samba-d94e9c802ceddeff93168337b6fc5533db7f2d33.tar.xz samba-d94e9c802ceddeff93168337b6fc5533db7f2d33.zip |
Remove the global variable "chain_size"
Diffstat (limited to 'source3/smbd/aio.c')
-rw-r--r-- | source3/smbd/aio.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/smbd/aio.c b/source3/smbd/aio.c index 4ce43c95e80..64d512d675d 100644 --- a/source3/smbd/aio.c +++ b/source3/smbd/aio.c @@ -141,8 +141,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->vwv+0, 0) != 0xFF) - || (lp_write_cache_size(SNUM(conn)) != 0) ) { + if (req_is_in_chain(req) || (lp_write_cache_size(SNUM(conn)) != 0)) { return False; } @@ -238,8 +237,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->vwv+0, 0) != 0xFF) - || (lp_write_cache_size(SNUM(conn)) != 0) ) { + if (req_is_in_chain(req) || (lp_write_cache_size(SNUM(conn)) != 0)) { return False; } |