summaryrefslogtreecommitdiffstats
path: root/source3/smbd/aio.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-01-30 23:44:21 +0100
committerVolker Lendecke <vl@samba.org>2009-01-31 11:09:39 +0100
commitd94e9c802ceddeff93168337b6fc5533db7f2d33 (patch)
treef38232bdd6402b386b2248793d99cc02eceb68e6 /source3/smbd/aio.c
parentb99859b948f31dbe474b6ce0c6cab601e7e7bc56 (diff)
downloadsamba-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.c6
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;
}