Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp829642ybt; Fri, 19 Jun 2020 15:06:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiYKP/HlkuEFu/5s4ayz6Xcq++wuFMvvXDlOHaEH8yK4xUenVfK47upBCMBHaYyCUK8fiF X-Received: by 2002:a17:906:55c9:: with SMTP id z9mr5853575ejp.276.1592604397917; Fri, 19 Jun 2020 15:06:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592604397; cv=none; d=google.com; s=arc-20160816; b=YYqvzCFEmdTQ037HjqMWtH5qNWJ1U/FSxv8cpA6DXUUZWavjGtWSZLmYJPSB05UzTa ydjWB7k1OVwRcj626+mC5Kglw2Pma7B6iuxgLr5Vmox8DxqiLUC0v5WnT3SJhZ8VX3eN RLgH8FywMD8/a9KaZj/uhyqYiwW+GmZ/wSW51EyX1nenBIdWDd4QR+rhzJ4094svsBaD yzG5w4Hyo1MxPBbrT/094g7zr8sBz9dde5cqEIJD/XLRd4oEoc8P5i6JFaPYNpqeSEvb rJGrorWHUPHbU2O07i5FSUKHWlC7vVATmTpPOw0o0sqEtsacVCw3gFn2oXqXo02KBNbl Fo1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=j0U0rAZaB2UWJgbn1tTj9uaBHYB8SQ8T+oF+7yWQ9HI=; b=Ru1j5uXNE+3z3gmua3+HVroID1Nq0crXzRMLQOxlviqLBepJKyPHs1MoaFNps9ECGo UZ0ZR9o6f8UP+niaQkKyOaxqZg1YJj2VG5ufG5aNOr6OhC5SGkIZxRwVpoX8eRSKF6R9 bPLjLo3OmOateQx0tbkrQPoqWtcJ5nX8QMZSJotanncmPlY5ZAjBtBFHsxZ+FCPAzJ2X FvJdm/B5L4XFaw3oCxcqX/KkHZUDQsPlK+KPTUXUs4C//zHIw1PXBfkARIBIo2wkj7N0 LBhRf2d3gtUr4TFjWDe9UxLsr3XFuQ7q7Je82feRv2gakQskGLPFWOmGryFRF2Im6C0Z TAxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QR5C2Vnb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qk2si4834238ejb.271.2020.06.19.15.06.16; Fri, 19 Jun 2020 15:06:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QR5C2Vnb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393365AbgFSPZE (ORCPT + 99 others); Fri, 19 Jun 2020 11:25:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392493AbgFSPWN (ORCPT ); Fri, 19 Jun 2020 11:22:13 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E10ACC06174E; Fri, 19 Jun 2020 08:22:12 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id b6so10054202wrs.11; Fri, 19 Jun 2020 08:22:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=j0U0rAZaB2UWJgbn1tTj9uaBHYB8SQ8T+oF+7yWQ9HI=; b=QR5C2Vnby+RsbvUpnk8P6wlOAX3FZW2jWrIAVrqO9sjmHUM156Tpm33emb1ecdoPMr P6qprQEBhkORJx6pBLHYEE0Zs8qjO6hA99WsAbWiJw1qnN8mhoBr1fB/NF3EI9Jf1IH5 674T4B4VhFYLtEJEQ0UgLOQnCfv42WSqU2AakjtCGP1xrQ+8OqC935k9NY24tFMBPuID LDMZeosGsW20GoEb9iC6ivIngVm/GeHqgqE1W9C+TTDOLRGY4gTrGzs1FnCZR0ZkFuu8 UKAqNj3hTQ+repVROcf0Mf38EtWKuZi6aNKXrcaD+dZd6qrH5x1YypHnvknb7ZVKUyq8 O6qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=j0U0rAZaB2UWJgbn1tTj9uaBHYB8SQ8T+oF+7yWQ9HI=; b=jp0IdDJPCWhPFYH+dXMQ+DEz7xLmX6r0R5Duw5kWmmJJxNQQiagAHpfM+zLgH1uhir aIXKPdHgWfzCzpNAdj7YK8Eocj2FcMbbj/sW/Kp6WBd8TZ5d/Gw6ZzQZMla4+91lVKQn DQMORzdmfrioXcybfMzg5qlTKR7d33wgGJGt6PP5CJTtNT3EdyeLopuFaVyTTsTy7CKo 7qgv3cuznVwT6FA2pw7p59CYdfy7LAo+p75NNi8PkOY/CaEEu+LSYxwlLp/qRLAqo26o z8NcOLrkByMTE+xDh+slLQRXqqx8ZgRQxKGY/JPjQtjEFIO/VYnUGG6ZUGmlIhF7meLX WW+Q== X-Gm-Message-State: AOAM533e+hc4UzPOsDW0L1LqtKiLSF9mUvrVeEuj0asFNA4YHSRwTbiH C/ebJBZ1QehScBnNPcmZTg== X-Received: by 2002:adf:a1c1:: with SMTP id v1mr4768778wrv.205.1592580131741; Fri, 19 Jun 2020 08:22:11 -0700 (PDT) Received: from localhost.localdomain ([46.53.250.254]) by smtp.gmail.com with ESMTPSA id g16sm770354wrh.91.2020.06.19.08.22.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jun 2020 08:22:10 -0700 (PDT) Date: Fri, 19 Jun 2020 18:22:08 +0300 From: Alexey Dobriyan To: axboe@kernel.dk Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, javier.gonz@samsung.com, linux-aio@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 3/3] io_uring: add support for zone-append Message-ID: <20200619152208.GA62406@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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;