Message ID | 20230519074047.1739879-29-dhowells@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 27346C77B7A for <linux-mm@archiver.kernel.org>; Fri, 19 May 2023 07:42:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B0EFF280003; Fri, 19 May 2023 03:42:42 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A744C280001; Fri, 19 May 2023 03:42:42 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 82747280003; Fri, 19 May 2023 03:42:42 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 70A29280001 for <linux-mm@kvack.org>; Fri, 19 May 2023 03:42:42 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 5339880991 for <linux-mm@kvack.org>; Fri, 19 May 2023 07:42:42 +0000 (UTC) X-FDA: 80806212564.14.15575C9 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf06.hostedemail.com (Postfix) with ESMTP id 8E20518000F for <linux-mm@kvack.org>; Fri, 19 May 2023 07:42:40 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=gdaDYS6F; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf06.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1684482160; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=edStQDA/gh3f03KMzWRlpjb2e/gxKf5/7u3ht9bl6/4=; b=Wp0yKMaKZggAfT0fZmDr8Ish0sOPANaN8dM2VXsS1Wy9JWKQsfhyRmXDdTP2jMsEh1vevB acBp9ipXi2g73t0WMIxY2LaWxEDoj7p91x49ncF1jo/q4H2uamyLn+mBZy5HJDNHWlVTbE XIp4An/3vh4yfAAudHz4X+dErCvVDC8= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=gdaDYS6F; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf06.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1684482160; a=rsa-sha256; cv=none; b=3cd+WMWdfWBVPjM8fyVZiedqDA8Cy1Zqtcqcc2Edo5Ja5XgzJ+FBhjsv7DEoG5TgNhtKeI x44lwIaRrPsWl/CvGD0eEy3NEXho5h82kD+CTTPCkZKDD5tD/8iKxzeq789uXN9wDi+9Fi n/mbBqPp1Vq8CaAoiUbBdI+a0U/7IjQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1684482159; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=edStQDA/gh3f03KMzWRlpjb2e/gxKf5/7u3ht9bl6/4=; b=gdaDYS6FFkw6F3YB4HIVdAp/+jefoPf8tqBAHV/C8htfAr9q5M+KM6bKv0co2bIWb7pbLI upNJ8chTvAjZKFqp0SWDbXFTfVQmhP/QypT9rkGwLs8/0dyV2CJfPNe8WeSo/M6p6/tehb kXt5bnM8W0zhbFfyqncLr/OQtwJi/vg= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-558-Zn02uDUqNWychxCT98RFHQ-1; Fri, 19 May 2023 03:42:36 -0400 X-MC-Unique: Zn02uDUqNWychxCT98RFHQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 654BA101A531; Fri, 19 May 2023 07:42:35 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.221]) by smtp.corp.redhat.com (Postfix) with ESMTP id 468A240CFD46; Fri, 19 May 2023 07:42:33 +0000 (UTC) From: David Howells <dhowells@redhat.com> To: Jens Axboe <axboe@kernel.dk>, Al Viro <viro@zeniv.linux.org.uk>, Christoph Hellwig <hch@infradead.org> Cc: David Howells <dhowells@redhat.com>, Matthew Wilcox <willy@infradead.org>, Jan Kara <jack@suse.cz>, Jeff Layton <jlayton@kernel.org>, David Hildenbrand <david@redhat.com>, Jason Gunthorpe <jgg@nvidia.com>, Logan Gunthorpe <logang@deltatee.com>, Hillf Danton <hdanton@sina.com>, Christian Brauner <brauner@kernel.org>, Linus Torvalds <torvalds@linux-foundation.org>, linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Christoph Hellwig <hch@lst.de>, John Hubbard <jhubbard@nvidia.com> Subject: [PATCH v20 28/32] block: Fix bio_flagged() so that gcc can better optimise it Date: Fri, 19 May 2023 08:40:43 +0100 Message-Id: <20230519074047.1739879-29-dhowells@redhat.com> In-Reply-To: <20230519074047.1739879-1-dhowells@redhat.com> References: <20230519074047.1739879-1-dhowells@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Rspam-User: X-Stat-Signature: jijr4wcfgd5iz4ip3j8e3zr54tnsbiug X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 8E20518000F X-HE-Tag: 1684482160-698889 X-HE-Meta: U2FsdGVkX18kugZyfnof2d5YiVCNv53XR4ofkAvKaCDoyHUKIebd0jpJNK2fZEqtDqp8ruyYm4cOKnCoIsgJqw+A5rBPE83HtjUDLbuk4h36Mc6X15F7EMe52/WTEvg9jtpIyiskOoWh6Y3dX4bkat18w3KOo7qNo2DWCcqfahkNqZGmdtlUqNVfkS1z2qLrDPNa/lNpKFVSb/C+XNug0GXpbcL2KCN09SQYnpRRmSWdkQ9FqHYw1mSM8HJJv2O8XAeSKqvBi31s0qy984QS2eXG5buokoV/Ow+SjjD5iVdm172cX8Y8kZc9eEtbBlK0xxz44pZDum6mfK/qzF6OEgnZ4ZNkqIfdJUts8v48IHsuD0YSYaBRY/UKfesFcLV6y2xYR04gdb0zZDpm3ROc599bF2LeE0buVxWnOBpGsVCMesriX+X0L7c0QkAQfmzcyDpvCKhqLbGGUecG8lQTXDgrqYVfyIqCZ1dl6DH9/aGwTzCbcP8ZKEOVHe1NIP7biwzDdAy9OevIy5zQPQDVVdSWAVTJM3h0RrelcG+1S5PEM7HaLjLtS92pMVcu0YQdn4Kxc/H/6AH3bTLkqUICyVwL/0gMuo0QLLDey/L/DEuuPJ+R+0FrglHfb+v2ugcV0Tnj6uKp75CYd6Ei5K8D3DTtEQQ0pWIk/KQE0BzsszwbvKN8cBHccx0LbTzEFHuLaazqxsMDyoGGpoLZBJYSuKWQHtePjT3jWnNY8Fis3iKt3fvv77DnNQ3a/Rv7wgXY4Gxl4HlGBi5t5O47flc7u6hC+uQpKVBUtWBORQE4bF3VckvjjxX84QWlqnvYT8SAbrO3zZ6he6l39c+PgfjB3cLZ+4fK3LiUwPA6HzLiSqp35vhcxnbSgBo61buLNc4XIRm8i1nM3MXTKQkcdCSW7Rc2zuCJRMiPBlDTriI8jKq78hpj3tedYj9bCbpdHBlhehy3MoJq+5TqunDPnRp mt4gSv5/ kmWrNIjvJGdo/dIoidgDjjCDA/m0euadKLWUuQRYYEG/HGL+qP3KHFiZ9K53rJAAEQqhPeL+Nw7nceS71XWqOXqnQpDOXLSyBXeulrVzMjIDlDHciVPn41OnBiz6Qx9GWf/iEwrEpvun+F+k+A50RfRWEVmdwH90bOJCqJJhmIekkFe+iPPWeDx4KNM6FO+rwt4vxPR60N0ezhlMl3dsb2e5bGgHzc82EBHAfBcbR4fZIcnR260J9dAm3/dk3GFPJxFyU3kLF2Cka5aQV7LMfl0V6ovLoixxgBNGRK3wKuDjVEYHS1pOxyMnI5bb3aimc7q6cYLY4t2pdP1pd7QJAJq89OcqCB+8L84GkWvZYRcMcg/4ik/498zfEbrKIx2HFdCOIiHHRK8fs40KyVRNSg2iockXvUW02+1CNZWw1SjY6oHIZnt+7X93JwFsmc/8+XeJ0xeh5gUXcyfOGfGh1duM55w== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
splice, block: Use page pinning and kill ITER_PIPE
|
expand
|
diff --git a/include/linux/bio.h b/include/linux/bio.h index b3e7529ff55e..7f53be035cf0 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -229,7 +229,7 @@ static inline void bio_cnt_set(struct bio *bio, unsigned int count) static inline bool bio_flagged(struct bio *bio, unsigned int bit) { - return (bio->bi_flags & (1U << bit)) != 0; + return bio->bi_flags & (1U << bit); } static inline void bio_set_flag(struct bio *bio, unsigned int bit)