Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2264993iof; Wed, 8 Jun 2022 00:51:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6tJ/BY6CmsX6oHIiLG/ZvIvKg78yqxND16Z0x4nF0tXIB/BWE5mOZrlH0u38vcW6M7iRk X-Received: by 2002:a17:902:9a8d:b0:167:77c3:4c86 with SMTP id w13-20020a1709029a8d00b0016777c34c86mr15430813plp.122.1654674715059; Wed, 08 Jun 2022 00:51:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654674715; cv=none; d=google.com; s=arc-20160816; b=yPvTv41bxPrcffbNNtRLm7tSjRLxmD07ayIRVMHPYgzDrPNkFzkfO0+FoFNkpOY/wf 6pxLu4XkKmVNOVc6KHm/L+5+k7w1wYCkOmtX3SIZTKp/n2fwRgQO+m7rQ2EqxiSELEmW kNvlcnw9TWYq4BgXfMYYdMe57qTHExSC25jKrHrPD9MsTrCxQK0NLDcitFHadmHMRd2q S2Em6Dfha/tHFixlFXvkmcnOFlvcwzYCyK2suq8UHUmlmJPcZhV5nbrrg/P3+e9e9cbG 6pxtnLHlPOIqHxCYP9jVNejBkgIARXL07sf6WR+0fE0hXMzL0zTbA4/YTSPMekvGy+rN pbIA== 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=b6wON9Z6JU3+uN5ltTclqJSVB1Bx8IHf1QFbetEb7/A=; b=g0JTfZ2hbm4EsXF/bc3N+ugtfVUBsExtv6WcKGaKQdkQQ/iAlOYBL4IsOzEooko06h xNSEJCFtQJa5Tlzw3XhAN0R7IiqPe1h5nOmU87mJGoNnq3+ZJUVv0vbbREEJi90D1952 K3+kh274Fy7EASnMaiPk75Qo+iNQ1dJv0ZCB8ZVoc4Nx59O1otmKWIFrnPgQD/aTsCCp m98RucVRkQKCsBfKsAtmbXDGGXnrB1gTsoI1YZ5n8GEulbwznS/6yywt5qbPsKkZgj/j 5aUvGZdGbScl3BTJlMVjGU7Ivw5TY2B5airrB2iypFUe3/8HYwrL3KmqoIsPHwmrW8pI vT5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="dVT5/6Hr"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id n7-20020aa79047000000b0051bdde894c6si19424723pfo.108.2022.06.08.00.51.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 00:51:55 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="dVT5/6Hr"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 B9A7E196AB5; Wed, 8 Jun 2022 00:22:01 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385743AbiFGWqe (ORCPT + 99 others); Tue, 7 Jun 2022 18:46:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376372AbiFGVgp (ORCPT ); Tue, 7 Jun 2022 17:36:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5416F140877; Tue, 7 Jun 2022 12:04:59 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 8EF36617CC; Tue, 7 Jun 2022 19:04:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 997CBC385A2; Tue, 7 Jun 2022 19:04:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628698; bh=IBJFk8m+ISBuPo0dyzuyqrLXv+zS3d6XfsnD/v3iwUM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dVT5/6HrtxO12yIi/sKG00wseSj2T+QpYdWvHtw5qLrUKj9kAb95G84g0hGG/JN9y NF/hgDf2wNgnwypfF3Z8cmRjzYIjdMcjppvnxMedmZdCOBUQzEpZ70rBNLphS0tCZN w4JMwH2+u4Qx+/y9dPY7knHtbZlKMMJElVtHr9JE= 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.18 424/879] block: Fix the bio.bi_opf comment Date: Tue, 7 Jun 2022 18:59:02 +0200 Message-Id: <20220607165015.173018807@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@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 1973ef9bd40f..4fa359c2c01f 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h @@ -246,9 +246,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