[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <b5bb1ba8-4738-3f8b-a8b7-839792cbfbf6@kernel.dk>
Date: Fri, 19 Jun 2020 09:23:27 -0600
From: Jens Axboe <axboe@...nel.dk>
To: Alexey Dobriyan <adobriyan@...il.com>
Cc: linux-kernel@...r.kernel.org, linux-block@...r.kernel.org,
javier.gonz@...sung.com, linux-aio@...r.kernel.org,
linux-fsdevel@...r.kernel.org
Subject: Re: [PATCH 3/3] io_uring: add support for zone-append
On 6/19/20 9:22 AM, Alexey Dobriyan wrote:
>> uint64_t val = cqe->res; // assuming non-error here
>>
>> if (cqe->flags & IORING_CQE_F_ZONE_FOO)
>> val |= (cqe->flags >> 16) << 32ULL;
>
> Jens, ULL in shift doesn't do anything for widening the result.
> You need
>
> val |= (uint64_t)(cqe->flags >> 16) << 32;
You're right of course, guess I should check my in-mail code a bit
better :-)
--
Jens Axboe
Powered by blists - more mailing lists