Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2288724pxb; Thu, 3 Feb 2022 03:34:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyns2pXVf1kvv9FfD+S16JOvHxoOLfJFa7QPYEkB8SZdVF4Q0hTXVZlMN00KjNgsLm3K21Q X-Received: by 2002:a17:907:2d8e:: with SMTP id gt14mr28990094ejc.509.1643888074948; Thu, 03 Feb 2022 03:34:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643888074; cv=none; d=google.com; s=arc-20160816; b=f/a1zpdhogI0FOUkm3tRSLfcwtZivbZ2geVtPhL7pfR6BqSOAZDLr1r0hSEBIIG4vc Tp7dlVUoa4iWrBqTBxS7HNm9mD30PL1IsJyTqayxUexT18AF95i6AyypfD8TVTGA11dw x+Sys4hwEkNcU8+yXnwJDEDqjrdNU+ckvG8TiH5l2KrIYEr5AO+b8U4ifZsLlcQZBOLj FWswWa+Zr3oF+23Gj1JQvPO3K7nxrYZjMwr5iKX7v3y5gdvsoTYc7ILd35A1Q8xX8lwi BqUq2A7m7W8FelV2eQhA1Z70gBBsAgybWe/o0KhsKhsWIETth56KwxCfim8NrxgKWIO5 rB3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=4SeKf0Pv3KI7vfINkFZfYLytziKJBKAleO/0SVcLdYY=; b=L4I0Sidngm9Ee3RE52XsmkcuMOdFeCWtXvZN0ckQxDGh8dpwllyLVP/OMZedN1jy0u p5ha7U7OPAtcLlpnOBFGYdtf9RUDY2yQTHKOwbvIYiX2E/qDGCZsN/W0ef5xrrY6vFDi 42zMLkS9XlIyO+I/MaeBK/5OP7dXZs4Gwg9jlzhiXm1ENL/y1MmBsH1l89UAKTH3Zloj cs5lpiZAqunzRhkPEy337VOd//DST1NQORmhB3Xxaxw0yYcjFxyyQW/OYMuVXk8ZOiXj cydXdPjIMfoBmg0IhGYVPRS8WV0MptssFVQu3OhvFJmucnsj2OTQCZdmTrDjAS1AYK+I OpHw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f10si11707750ejl.292.2022.02.03.03.34.10; Thu, 03 Feb 2022 03:34:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346699AbiBBSlF (ORCPT + 99 others); Wed, 2 Feb 2022 13:41:05 -0500 Received: from mail-pg1-f180.google.com ([209.85.215.180]:37510 "EHLO mail-pg1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241250AbiBBSlD (ORCPT ); Wed, 2 Feb 2022 13:41:03 -0500 Received: by mail-pg1-f180.google.com with SMTP id e16so256806pgn.4; Wed, 02 Feb 2022 10:41:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=4SeKf0Pv3KI7vfINkFZfYLytziKJBKAleO/0SVcLdYY=; b=ZuWuI9db92GS8ouskq74uFfOm27ZtZdXqdwS/nnq8rqfNuQZWKqJjcAPc+4+ksdAB7 txnFBHGwvJ3/1s1SfJ2YrJCrEJxEDYjLievwD7uqHDuDcZOarDGtBXXzf8F3rWqKKabG ERRLpSdPHOofEv6i8nx6gLLyXDkySs/0WOCeQKRU5FHHotLTtBYNLxZBgOFcq4RORzni ZKADn7sSBdPNpvJ8ZHQLCdDIW7hl+4yPTqBdE+9A8GOqdoxuDER+IsMbbvHdIWfcYmGC p0ipRKz6pLYFyubJ8vnd4gMMqDRSYobs2LPqIyWwaT0PPSPdGtOIkko9Okjz7m5M+rzF ZGeQ== X-Gm-Message-State: AOAM530AY5/nEktDkd11p+RguJHywwoYyNUr4IXEn/2u1yqt1qFJxOkj hA09emXgm/49Zb3EAoeYk6Y= X-Received: by 2002:a63:6844:: with SMTP id d65mr12349403pgc.56.1643827263302; Wed, 02 Feb 2022 10:41:03 -0800 (PST) Received: from [192.168.51.110] (c-73-241-217-19.hsd1.ca.comcast.net. [73.241.217.19]) by smtp.gmail.com with ESMTPSA id j10sm26668742pfu.93.2022.02.02.10.41.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Feb 2022 10:41:02 -0800 (PST) Message-ID: <60060901-acd0-5b39-6d0f-13b0359b756d@acm.org> Date: Wed, 2 Feb 2022 10:40:59 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCHv2 6/7] block: add pi for nvme enhanced integrity Content-Language: en-US To: Keith Busch , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org Cc: axboe@kernel.dk, hch@lst.de, martin.petersen@oracle.com, colyli@suse.de References: <20220201190128.3075065-1-kbusch@kernel.org> <20220201190128.3075065-7-kbusch@kernel.org> From: Bart Van Assche In-Reply-To: <20220201190128.3075065-7-kbusch@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/1/22 11:01, Keith Busch wrote: > + ref = get_unaligned_be48(pi->ref_tag); > + seed = iter->seed & 0xffffffffffffull; The "& 0xffffffffffffull" operation occurs three times in this patch. Has it been considered to introduce a lower_48_bits() function? Thanks, Bart.