Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2248037iof; Wed, 8 Jun 2022 00:25:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVecn3+WifS07GWKFy+PmNgRLwk57wxQJ1wvgfZT9u2pMgd/yye/b2nGS8DdJRSLnCfr9v X-Received: by 2002:a17:902:f142:b0:167:c58:2d45 with SMTP id d2-20020a170902f14200b001670c582d45mr26845338plb.109.1654673150194; Wed, 08 Jun 2022 00:25:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654673150; cv=none; d=google.com; s=arc-20160816; b=jNMUGrLR9qlvcCFn8GYvQp65Aq3OGqNuOTj6rWsUZv4xs/50nI+gIDrMUAHKzFbRV3 q3Q5PLGYOE5IkrLkmTfU5OKCTfF1Fj4R5cLa65jP36hLwul+AaZQT2bFohYrjuZDs6Mg OfxoIr6CSUYmwtkxVp73RPsYRPfX9DGOhcVwBrh+MWqjGDOsDsSh7klXPD/2DJFqR9Ev r4l/TqdJm3pMsIi9cEpVfEUYgeQ78N/KAhJ3gAZW4DsCBUpkkAb0rFBxm+ioIxjylsXx Yjnzk537667ahhCnrh/L3G4UH5mOZxQCL0HzSAFR3I5wMbpe4B1EZlhqF3JrQcXGlI6+ PKVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=koev6+m+IDWiz3ILwNLJdcXO4YScwzRfyyPqdx/NHxA=; b=gUbQV4vNNxlnJb/I0PTJxyQnAFojIMnAyW3rWXGPNO0cE+TJtV11lbdruOT2WZjXPJ B2k6Akjb6HG5bUbvIWUbVsbT1K9Yn3wt02ktnDmwxY9UWKoud/xOed1YN6KaBaI45fBP 4/49Dmmt27UevGXyMKWHq+3xZSthA4C4d/b+XSlMr6VnzetlInfcQy0Gc8/deo5HySyY 1RfzAeNejM6LS2dSPUuX7HKHo8NR5lkJ0kHUXOnkBEiV8h7W6O7mTSZSsbQjHfvUjOuP vq6w/B1H1dpGN6Pz7+W4a5rlO++SQ3g+Z8fCa9oCcVQLncmpPxpgiFwzbiPvDt8rEQmP zApQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sVvE1B4f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l6-20020a170903244600b0016646a406easi23065453pls.417.2022.06.08.00.25.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 00:25:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sVvE1B4f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 49A4E1E177C; Tue, 7 Jun 2022 23:56:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378498AbiFGVGu (ORCPT + 99 others); Tue, 7 Jun 2022 17:06:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359101AbiFGUJP (ORCPT ); Tue, 7 Jun 2022 16:09:15 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2CAD1406E5; Tue, 7 Jun 2022 11:26:38 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 8875CB81FF8; Tue, 7 Jun 2022 18:26:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D97FCC385A2; Tue, 7 Jun 2022 18:26:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654626396; bh=j2Fb0nAZxAw9pFJAaoO0Fz81oQajZ15NykutXoAzCFE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sVvE1B4fo3op8XSDMBILGZsfP7gygaljDv/p1kae+3yGcd6hMiwtK0RvQ1glGo/9q 4I4zys36BSkKGKwMAsKtFUAPNiSTb4y5BTIM0SRgKAJ1SbLUEZyHMKR7VntUwBtYQZ EpIGJXtGKODJYj2MxSBtM/fr3MLvR8GThIL2PEDI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christoph Hellwig , Ming Lei , Bart Van Assche , Jens Axboe , Sasha Levin Subject: [PATCH 5.17 363/772] block: Fix the bio.bi_opf comment Date: Tue, 7 Jun 2022 18:59:15 +0200 Message-Id: <20220607164959.710463312@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164948.980838585@linuxfoundation.org> References: <20220607164948.980838585@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bart Van Assche [ Upstream commit 5d2ae14276e698c76fa0c8ce870103f343b38263 ] Commit ef295ecf090d modified the Linux kernel such that the bottom bits of the bi_opf member contain the operation instead of the topmost bits. That commit did not update the comment next to bi_opf. Hence this patch. >From commit ef295ecf090d: -#define bio_op(bio) ((bio)->bi_opf >> BIO_OP_SHIFT) +#define bio_op(bio) ((bio)->bi_opf & REQ_OP_MASK) Cc: Christoph Hellwig Cc: Ming Lei Fixes: ef295ecf090d ("block: better op and flags encoding") Signed-off-by: Bart Van Assche Reviewed-by: Christoph Hellwig Link: https://lore.kernel.org/r/20220511235152.1082246-1-bvanassche@acm.org Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin --- include/linux/blk_types.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index 86c0f85df8bb..fa6e14b2763f 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h @@ -237,9 +237,8 @@ typedef unsigned int blk_qc_t; struct bio { struct bio *bi_next; /* request queue link */ struct block_device *bi_bdev; - unsigned int bi_opf; /* bottom bits req flags, - * top bits REQ_OP. Use - * accessors. + unsigned int bi_opf; /* bottom bits REQ_OP, top bits + * req_flags. */ unsigned short bi_flags; /* BIO_* below */ unsigned short bi_ioprio; -- 2.35.1