relay: fix bogus cast in subbuf_splice_actor()
authorTom Zanussi <zanussi@us.ibm.com>
Thu, 12 Jul 2007 06:12:04 +0000 (08:12 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 13 Jul 2007 12:14:26 +0000 (14:14 +0200)
The current code that sets the read position in subbuf_splice_actor may
give erroneous results if the buffer size isn't a power of 2.  This
patch fixes the problem.

Signed-off-by: Tom Zanussi <zanussi@us.ibm.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
kernel/relay.c

diff --cc kernel/relay.c
Simple merge