[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200619152208.GA62406@localhost.localdomain>
Date: Fri, 19 Jun 2020 18:22:08 +0300
From: Alexey Dobriyan <adobriyan@...il.com>
To: axboe@...nel.dk
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
> 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;
Powered by blists - more mailing lists